Fixed HTTP proxying not sending correct header when other headers than 200 were sent.

This commit is contained in:
Thulinma 2014-02-10 00:24:49 +01:00
parent 5aa65ee709
commit 1e8c394b95

View file

@ -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()){