Commit 213939a3 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't issue Unset VSL records for the three top-line fields.

parent b2f32cd8
...@@ -798,7 +798,8 @@ http_ForceField(struct http *to, unsigned n, const char *t) ...@@ -798,7 +798,8 @@ http_ForceField(struct http *to, unsigned n, const char *t)
if (to->hd[n].b == NULL || strcmp(to->hd[n].b, t)) { if (to->hd[n].b == NULL || strcmp(to->hd[n].b, t)) {
i = (HTTP_HDR_UNSET - HTTP_HDR_METHOD); i = (HTTP_HDR_UNSET - HTTP_HDR_METHOD);
i += to->logtag; i += to->logtag;
VSLbt(to->vsl, (enum VSL_tag_e)i, to->hd[n]); if (n >= HTTP_HDR_FIRST)
VSLbt(to->vsl, (enum VSL_tag_e)i, to->hd[n]);
http_SetH(to, n, t); http_SetH(to, n, t);
} }
} }
......
...@@ -13,9 +13,7 @@ varnish v1 -vcl+backend { ...@@ -13,9 +13,7 @@ varnish v1 -vcl+backend {
logexpect l1 -v v1 -g request { logexpect l1 -v v1 -g request {
expect * 1001 ReqMethod "HEAD" expect * 1001 ReqMethod "HEAD"
expect * = ReqProtocol "HTTP/1.0" expect * = ReqProtocol "HTTP/1.0"
expect * 1002 BereqUnset "HEAD" expect * 1002 BereqMethod "GET"
expect 0 = BereqMethod "GET"
expect * = BereqUnset "HTTP/1.0"
expect 0 = BereqProtocol "HTTP/1.1" expect 0 = BereqProtocol "HTTP/1.1"
} -start } -start
......
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