Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit 6edfb09

Browse files
author
Björn Weström
committed
Fixed handling of response body for ReRequests. Spelling.
1 parent cfb601a commit 6edfb09

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Titanium.Web.Proxy/ResponseHandler.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ private async Task HandleHttpSessionResponse(SessionEventArgs args)
3636
await Handle401UnAuthorized(args);
3737
}
3838

39+
response.OriginalHasBody = response.HasBody;
40+
3941
//if user requested call back then do it
4042
if (!response.Locked)
4143
{
@@ -44,9 +46,9 @@ private async Task HandleHttpSessionResponse(SessionEventArgs args)
4446

4547
// it may changed in the user event
4648
response = args.WebSession.Response;
47-
49+
4850
var clientStreamWriter = args.ProxyClient.ClientStreamWriter;
49-
51+
5052
if (response.TerminateResponse || response.Locked)
5153
{
5254
await clientStreamWriter.WriteResponseAsync(response);
@@ -64,7 +66,7 @@ private async Task HandleHttpSessionResponse(SessionEventArgs args)
6466

6567
return;
6668
}
67-
69+
6870
//if user requested to send request again
6971
//likely after making modifications from User Response Handler
7072
if (args.ReRequest)

Titanium.Web.Proxy/WinAuthHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ internal async Task Handle401UnAuthorized(SessionEventArgs args)
130130
//Should we cache all Set-Cokiee headers from server during auth process
131131
//and send it to client after auth?
132132

133-
// Let ReposnseHandler send the updated request
133+
// Let ResponseHandler send the updated request
134134
args.ReRequest = true;
135135
}
136136
}

0 commit comments

Comments
 (0)