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

Allow TAB in the 3rd field of the first line of HTTP requests and responses.

Fixes: #700



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4829 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7d059dad
......@@ -474,7 +474,7 @@ http_splitline(struct worker *w, int fd, struct http *hp,
q = p;
if (!vct_iscrlf(*p)) {
for (; !vct_iscrlf(*p); p++)
if (vct_isctl(*p))
if (!vct_issep(*p) && vct_isctl(*p))
return (-1);
}
hp->hd[h3].b = q;
......
# $Id$
test "check TAB in 3 header field"
server s1 {
rxreq
send "HTTP/1.1 666 foo\tbar\n\nFOO"
} -start
varnish v1 -vcl+backend {} -start
client c1 {
txreq
rxresp
expect resp.status == 666
} -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