Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
08c46695
Commit
08c46695
authored
Jun 03, 2020
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(SP|TAB) is rightfully called OWS in RFC7230
This change is binary compatible.
parent
512e3953
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
vct.h
include/vct.h
+4
-3
vct.c
lib/libvarnish/vct.c
+2
-2
No files found.
include/vct.h
View file @
08c46695
...
...
@@ -34,9 +34,9 @@
#include "vas.h"
#define VCT_
SP
(1<<0)
#define VCT_
OWS
(1<<0)
#define VCT_CRLF (1<<1)
#define VCT_LWS (VCT_CRLF | VCT_
SP
)
#define VCT_LWS (VCT_CRLF | VCT_
OWS
)
#define VCT_CTL (1<<2)
#define VCT_ALPHA (1<<3)
#define VCT_SEPARATOR (1<<4)
...
...
@@ -64,7 +64,8 @@ vct_is(int x, uint16_t y)
return
(
vct_typtab
[
x
]
&
(
y
));
}
#define vct_issp(x) vct_is(x, VCT_SP)
#define vct_isows(x) vct_is(x, VCT_OWS)
#define vct_issp(x) vct_is(x, VCT_OWS)
#define vct_ishex(x) vct_is(x, VCT_HEX)
#define vct_islws(x) vct_is(x, VCT_LWS)
#define vct_isctl(x) vct_is(x, VCT_CTL)
...
...
lib/libvarnish/vct.c
View file @
08c46695
...
...
@@ -56,7 +56,7 @@ const uint16_t vct_typtab[256] = {
[
0x06
]
=
VCT_CTL
,
[
0x07
]
=
VCT_CTL
,
[
0x08
]
=
VCT_CTL
,
[
0x09
]
=
VCT_CTL
|
VCT_
SP
,
[
0x09
]
=
VCT_CTL
|
VCT_
OWS
,
[
0x0a
]
=
VCT_CTL
|
VCT_CRLF
,
[
0x0b
]
=
VCT_CTL
|
VCT_VT
,
[
0x0c
]
=
VCT_CTL
,
...
...
@@ -79,7 +79,7 @@ const uint16_t vct_typtab[256] = {
[
0x1d
]
=
VCT_CTL
,
[
0x1e
]
=
VCT_CTL
,
[
0x1f
]
=
VCT_CTL
,
[
0x20
]
=
VCT_
SP
,
[
0x20
]
=
VCT_
OWS
,
[
0x21
]
=
VCT_TCHAR
,
[
0x22
]
=
VCT_SEPARATOR
,
[
0x23
]
=
VCT_TCHAR
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment