]> 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)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 2 Apr 2020 15:21:34 +0000 (15:21 +0000)
commit7f98aad5dcd9f566b4668b9764024d71a95cbb25
tree47a13e53d15004be61e1542366f74f9706d9f038
parentaba0474c1031f89ad9aae5b3e4973ef6a14292e3
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