Commit 1d06ec32 authored by Björn Weström's avatar Björn Weström

Moved ConnectResponse fix to RequestHandler

Fixed that the request body is sent with the final token during WinAuth negotiation
parent 30870882
......@@ -22,8 +22,6 @@ namespace Titanium.Web.Proxy.Http
StatusDescription = "Connection Established"
};
// Set ContentLength explicitly to properly handle HTTP 1.0
response.ContentLength = 0;
return response;
}
}
......
......@@ -92,6 +92,8 @@ namespace Titanium.Web.Proxy
//write back successfull CONNECT response
var response = ConnectResponse.CreateSuccessfullConnectResponse(version);
// Set ContentLength explicitly to properly handle HTTP 1.0
response.ContentLength = 0;
response.Headers.FixProxyHeaders();
connectArgs.WebSession.Response = response;
......
......@@ -133,7 +133,7 @@ namespace Titanium.Web.Proxy
request.Headers.SetOrAddHeaderValue(KnownHeaders.Authorization, auth);
//send body for final auth request
if (request.HasBody)
if (request.OriginalHasBody)
{
request.ContentLength = request.Body.Length;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment