From 1e8c394b956994470937206e7c8343a155bcd1ef Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 10 Feb 2014 00:24:49 +0100 Subject: [PATCH] Fixed HTTP proxying not sending correct header when other headers than 200 were sent. --- lib/http_parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http_parser.cpp b/lib/http_parser.cpp index 8c11ab06..4caa4942 100644 --- a/lib/http_parser.cpp +++ b/lib/http_parser.cpp @@ -153,7 +153,7 @@ void HTTP::Parser::StartResponse(HTTP::Parser & request, Socket::Connection & co /// - Forward those contents as-is to the 'to' Socket::Connection. /// It blocks until completed or either of the connections reaches an error state. void HTTP::Parser::Proxy(Socket::Connection & from, Socket::Connection & to){ - SendResponse("200", "OK", to); + SendResponse(url, method, to); if (getChunks){ unsigned int proxyingChunk = 0; while (to.connected() && from.connected()){