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
213939a3
Commit
213939a3
authored
Feb 28, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't issue Unset VSL records for the three top-line fields.
parent
b2f32cd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
cache_http.c
bin/varnishd/cache/cache_http.c
+2
-1
r01662.vtc
bin/varnishtest/tests/r01662.vtc
+1
-3
No files found.
bin/varnishd/cache/cache_http.c
View file @
213939a3
...
...
@@ -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
))
{
i
=
(
HTTP_HDR_UNSET
-
HTTP_HDR_METHOD
);
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
);
}
}
...
...
bin/varnishtest/tests/r01662.vtc
View file @
213939a3
...
...
@@ -13,9 +13,7 @@ varnish v1 -vcl+backend {
logexpect l1 -v v1 -g request {
expect * 1001 ReqMethod "HEAD"
expect * = ReqProtocol "HTTP/1.0"
expect * 1002 BereqUnset "HEAD"
expect 0 = BereqMethod "GET"
expect * = BereqUnset "HTTP/1.0"
expect * 1002 BereqMethod "GET"
expect 0 = BereqProtocol "HTTP/1.1"
} -start
...
...
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