Commit 18a06da3 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Add a test for HTTP/0.9 deprecation

parent 9ab5669b
varnishtest "Check that all but HTTP/1.0 and HTTP/1.1 get 400"
server s1 {
rxreq
txresp -body "FOO"
} -start
varnish v1 -vcl+backend {
} -start
client c1 {
send "GET /\r\n\r\n"
rxresp
expect resp.status == 400
} -run
client c1 {
send "GET / HTTP/0.5\r\n\r\n"
rxresp
expect resp.status == 400
} -run
client c1 {
send "GET / HTTP/1.2\r\n\r\n"
rxresp
expect resp.status == 400
} -run
client c1 {
send "GET / HTTP/2.0\r\n\r\n"
rxresp
expect resp.status == 400
} -run
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