Commit 6edfb09c authored by Björn Weström's avatar Björn Weström

Fixed handling of response body for ReRequests. Spelling.

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