]> 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>
Fri, 29 May 2020 18:38:59 +0000 (06:38 +1200)
commit7a195acc06c086dadd3f3b4f4efba5c5a72315b6
tree0fc8886fe22b3fe1c1cdf87c5f8ef667090b4e96
parent930cb11079a344f438999101f939d6e9a3d6d32b
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