Calling .reason() on a not-yet-set theMessage.sline object resulted in
"Init" status reason phrase for all from-scratch (i.e., not cloned)
eCAP-made HTTP responses. This fix lets Squid compute the reason phrase
based on the status code, just like Squid does for forwarded responses
(IIRC).
void
Adaptation::Ecap::StatusLineRep::statusCode(int code)
{
- theMessage.sline.set(theMessage.sline.version, static_cast<Http::StatusCode>(code), theMessage.sline.reason());
+ theMessage.sline.set(theMessage.sline.version, static_cast<Http::StatusCode>(code), nullptr);
}
int