]> git.ipfire.org Git - thirdparty/squid.git/commit - src/helper/Reply.cc
Fix bogus 'invalid response' message on URL rewriter interface
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 20 Mar 2013 04:48:17 +0000 (22:48 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 20 Mar 2013 04:48:17 +0000 (22:48 -0600)
commitaef3208d890c426d8dc97f1c39aeb1b960c755bc
treef95b273d4706f4e56235ce780c4f918075e768cc
parentc35dd84844eb8706872edd412deadc5fdadfb26f
Fix bogus 'invalid response' message on URL rewriter interface

The empty-line response from rewriter and redirector should be converted
to ERR reply code in the new API. It was being left as Unknown.

While this reply used to only be valid on URL helper interface, and it
woudl be more appropriate to map other helpers to BH the ERR response
seems to be safe for use on any of the helper interfaces for an empty
line response. At worst it will prevent the lookup being re-tried on
other possibly better working helper instance.
src/HelperReply.cc