Skip to content

Instantly share code, notes, and snippets.

@gquintard
Created September 20, 2016 11:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gquintard/629d134caac6e6c4acfc9a6057c603a6 to your computer and use it in GitHub Desktop.
Save gquintard/629d134caac6e6c4acfc9a6057c603a6 to your computer and use it in GitHub Desktop.
varnishtest "416"
server s1 {
rxreq
send "HTTP/1.1 200 OK\r\n"
send "Content-length: 16\r\n"
send "\r\n"
send "012345678910"
delay 1
send "abcdef"
} -start
varnish v1 -vcl+backend {
} -start
client c1 {
txreq -hdr "Range: bytes=14-15"
rxresp
expect resp.status == 206
} -run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment