Commit e5c7502d authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make sure attempts to talk (draft-)HTTP/2.0 don't confuse anybody.

parent 5f58e962
......@@ -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" &&
......
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment