Commit a937b824 authored by Björn Weström's avatar Björn Weström

Fixed handling of response body for ReRequests. Spelling.

parent 706b96fc
......@@ -36,6 +36,8 @@ namespace Titanium.Web.Proxy
await Handle401UnAuthorized(args);
}
response.OriginalHasBody = response.HasBody;
//if user requested call back then do it
if (!response.Locked)
{
......@@ -44,9 +46,9 @@ namespace Titanium.Web.Proxy
// it may changed in the user event
response = args.WebSession.Response;
var clientStreamWriter = args.ProxyClient.ClientStreamWriter;
if (response.TerminateResponse || response.Locked)
{
await clientStreamWriter.WriteResponseAsync(response);
......@@ -64,7 +66,7 @@ namespace Titanium.Web.Proxy
return;
}
//if user requested to send request again
//likely after making modifications from User Response Handler
if (args.ReRequest)
......
......@@ -130,7 +130,7 @@ namespace Titanium.Web.Proxy
//Should we cache all Set-Cokiee headers from server during auth process
//and send it to client after auth?
// Let ReposnseHandler send the updated request
// Let ResponseHandler send the updated request
args.ReRequest = true;
}
}
......
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