Otherwise, our "X-Transformed-From: HTTP/0.9" headers are going to
be ignored, and the rest of the received bytes are going to be parsed
(and modified!) as an HTTP/1 response header, followed by message body.
const int retcode = parseResponseFirstLine();
// first-line (or a look-alike) found successfully.
- if (retcode > 0)
+ if (retcode > 0 && parsingStage_ == HTTP_PARSE_FIRST)
parsingStage_ = HTTP_PARSE_MIME;
debugs(74, 5, "status-line: retval " << retcode);
debugs(74, 5, "status-line: proto " << msgProtocol_);