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
ea1d09b3
Commit
ea1d09b3
authored
Aug 15, 2019
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test case covering some HTTP/1 parsing corner cases
parent
bf18bb21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
b00067.vtc
bin/varnishtest/tests/b00067.vtc
+29
-0
No files found.
bin/varnishtest/tests/b00067.vtc
0 → 100644
View file @
ea1d09b3
varnishtest "HTTP/1 parsing checks"
# Some tricky requests that have been known to cause parsing errors in the past.
server s1 {
rxreq
txresp
} -start
varnish v1 -vcl+backend {
} -start
# This test checks a bug that was dependent on the contents of the buffer left behind
# by the previous request
client c1 {
send "GET / HTTP/1.1\r\nHost: asdf.com\r\nFoo: baar\r\n\r\n\r\n\r\n\r\n"
rxresp
send "GET / HTTP/1.1\r\nHost: asdf.com\r\nAsdf: b\n \r\n\r\nSj\r"
rxresp
expect resp.status == 200
} -run
# This tests that the line continuation handling doesn't clear out the end of headers
# [CR]LF
client c1 {
send "GET / HTTP/1.1\r\nHost: asdf.com\r\nAsdf: b\n \r\n\r\nSj"
rxresp
expect resp.status == 200
} -run
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