Skip to content

Commit

Permalink
Added an XXX about code dulication
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard-bagdasaryan committed Dec 29, 2024
1 parent 05e4c0f commit 9664b02
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/clients/HttpTunneler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ Http::Tunneler::handleResponse(const bool eof)
}

if (!parsedOk) {
// XXX: This code and Server RESPONSE reporting code below duplicate
// HttpStateData::processReplyHeader() reporting code, including its problems.
debugs(11, 3, "Non-HTTP-compliant header:\n---------\n" << readBuf << "\n----------");
bailOnResponseError("malformed CONNECT response from peer", nullptr);
return;
Expand Down

0 comments on commit 9664b02

Please sign in to comment.