]> git.ipfire.org Git - thirdparty/squid.git/commit - src/http.cc
Fix reason-phrase mangling
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 15 Nov 2014 17:57:14 +0000 (09:57 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 15 Nov 2014 17:57:14 +0000 (09:57 -0800)
commit62f9b110b503adebe76d552878e610d011f38c2d
treea12589c4fc02d659330ae617821833d6b798e890
parent049f7b05d926f31d8dd9a0e880c438b13392b90b
Fix reason-phrase mangling

The legacy code reason-phrase requires const char*, which we no longer
have. We get an SBUf from the parser instead.
To avoid c_str() performance regressions or bloating the code with
StatusLine alterations we must take advantage of the default reason
phrases on output and RFC permission to ignore phrases delivered by the
server.
src/http.cc