]> git.ipfire.org Git - thirdparty/squid.git/commit
Restore PURGE miss replies to be "404 Not Found", not "0 Init" (#586)
authorChristos Tsantilas <christos@chtsanti.net>
Thu, 2 Apr 2020 15:21:28 +0000 (15:21 +0000)
committerAmos Jeffries <yadij@users.noreply.github.com>
Mon, 13 Apr 2020 13:53:58 +0000 (01:53 +1200)
commit4812a34e4226d3209cba9a03f4c30149fb1d0f32
treeb830dc0592b5a676acc89d9b8b564ec319d4a7c6
parente0c9a32e9133e1ddc95f4f84a9989d8146d27664
Restore PURGE miss replies to be "404 Not Found", not "0 Init" (#586)

Since commit 6956579, PURGE requests resulted in invalid HTTP responses
with zero status code when Store lacked both GET and HEAD entries with
the requested URI.

Also adjusted Http::StatusLine packing code to avoid generating similar
invalid responses in the future (and to attract developer attention to
their presence in the code logic with a BUG message).

This is a Measurement Factory project.
src/client_side_reply.cc
src/http/StatusLine.cc