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
e5c7502d
Commit
e5c7502d
authored
Jun 19, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure attempts to talk (draft-)HTTP/2.0 don't confuse anybody.
parent
5f58e962
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
builtin.vcl
bin/varnishd/builtin.vcl
+4
-0
http_headers.h
include/tbl/http_headers.h
+1
-0
No files found.
bin/varnishd/builtin.vcl
View file @
e5c7502d
...
...
@@ -45,6 +45,10 @@ vcl 4.0;
# Client side
sub vcl_recv {
if (req.method == "PRI") {
/* We do not support SPDY or HTTP/2.0 */
return (synth(405));
}
if (req.method != "GET"
&&
req.method != "HEAD"
&&
req.method != "PUT"
&&
...
...
include/tbl/http_headers.h
View file @
e5c7502d
...
...
@@ -69,6 +69,7 @@ HTTPH("Expect", H_Expect, 0 ) /* RFC2616 14.20 */
HTTPH
(
"Expires"
,
H_Expires
,
0
)
/* RFC2616 14.21 */
HTTPH
(
"From"
,
H_From
,
0
)
/* RFC2616 14.22 */
HTTPH
(
"Host"
,
H_Host
,
0
)
/* RFC2616 14.23 */
HTTPH
(
"HTTP2-Settings"
,
H_HTTP2_Settings
,
HTTPH_R_PASS
|
HTTPH_R_FETCH
|
HTTPH_A_INS
)
/* draft-ietf-httpbis-http2-12.txt */
HTTPH
(
"If-Match"
,
H_If_Match
,
HTTPH_R_FETCH
)
/* RFC2616 14.24 */
HTTPH
(
"If-Modified-Since"
,
H_If_Modified_Since
,
HTTPH_R_FETCH
)
/* RFC2616 14.25 */
HTTPH
(
"If-None-Match"
,
H_If_None_Match
,
HTTPH_R_FETCH
)
/* RFC2616 14.26 */
...
...
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