Fixed HTTP proxying not sending correct header when other headers than 200 were sent.
This commit is contained in:
parent
5aa65ee709
commit
1e8c394b95
1 changed files with 1 additions and 1 deletions
|
@ -153,7 +153,7 @@ void HTTP::Parser::StartResponse(HTTP::Parser & request, Socket::Connection & co
|
||||||
/// - Forward those contents as-is to the 'to' Socket::Connection.
|
/// - Forward those contents as-is to the 'to' Socket::Connection.
|
||||||
/// It blocks until completed or either of the connections reaches an error state.
|
/// It blocks until completed or either of the connections reaches an error state.
|
||||||
void HTTP::Parser::Proxy(Socket::Connection & from, Socket::Connection & to){
|
void HTTP::Parser::Proxy(Socket::Connection & from, Socket::Connection & to){
|
||||||
SendResponse("200", "OK", to);
|
SendResponse(url, method, to);
|
||||||
if (getChunks){
|
if (getChunks){
|
||||||
unsigned int proxyingChunk = 0;
|
unsigned int proxyingChunk = 0;
|
||||||
while (to.connected() && from.connected()){
|
while (to.connected() && from.connected()){
|
||||||
|
|
Loading…
Add table
Reference in a new issue