-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BereqMethod shown as HEAD although request is sent with GET #4244
Comments
It actually reports both of them, if you see the logs:
I think this is a good thing, at least we know that it was changed (in this case by the core code, but could also happen in VCL).
Was this captured using |
My bad, |
No problem, then I guess everything is working as expected. I will close the issue. |
I can confirm that, when building Varnish from #4213, it works as expected:
Although it didn't entirely work with master (varnishlog shows the change in
Sorry for the bother, we can consider that this issue will be fixed by #4213.
will be once the PR is merged :) But I can wait, thanks for your help. |
Expected Behavior
When Varnish sends a GET to the backend, BereqMethod should be GET, not HEAD.
Current Behavior
When a client sends a HEAD, Varnish sends a GET to the backend and incorrectly reports that it used a HEAD.
Possible Solution
No response
Steps to Reproduce (for bugs)
With
After building 772d738 or de4b66c (from #4213 as requested by @dridi).
./bin/varnishd/varnishd -f $(pwd)/test.vcl -F
varnishlog
andvarnishncsa -b
tshark -f "host E.F.G.H" -t ad
curl http://localhost/pub/debian/README.html -I
24 2024-12-30 16:21:14.070359100 A.B.C.D → E.F.G.H HTTP 262 GET /pub/debian/README.html HTTP/1.1
Context
This makes it harder to understand what request is sent to the backend.
Varnish Cache version
varnishd (varnish-trunk revision 772d738)
Operating system
Debian 12
Source of binary packages used (if any)
N/A
The text was updated successfully, but these errors were encountered: