]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix propagation of response status line parsing error details.
authorAlex Rousskov <rousskov@measurement-factory.com>
Fri, 19 Feb 2016 21:26:00 +0000 (14:26 -0700)
committerAlex Rousskov <rousskov@measurement-factory.com>
Fri, 19 Feb 2016 21:26:00 +0000 (14:26 -0700)
commitada1f18c8fd757447093fe936aa111eae9063a02
tree0e41a1d3d341c6d6140aa767768f19da91421a91
parent70df76e30151bb5fd2070a275e2489ee6bdaaea9
Fix propagation of response status line parsing error details.

This is a follow-up patch to trunk r14548 (Bug 4432). Now that the
calling code is using the right field to get the parsing error details
(parseStatusCode), we need to fix the code that sets those parsing error
details [in case of response status line parsing errors].

TODO: To minimize chances of similar "I forgot to set parseStatusCode"
bugs slipping through, hide that data member behind a method that
returns scInvalidHeader (or a new scInternalSquidError) if parseError_
is still zero. Rename parseStatusCode to parseError_ and stop confusing
it with the response status code.
src/http/one/ResponseParser.cc