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

Commit 9c56e63

Browse files
author
rob.lascelles
committed
This allows server to read body, and to cancel request to the server - but I don't know why!
1 parent 4848e5d commit 9c56e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Titanium.Web.Proxy/EventArguments/SessionEventArgs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ private async Task<byte[]> readBodyAsync(bool isRequest, CancellationToken cance
179179
internal async Task SyphonOutBodyAsync(bool isRequest, CancellationToken cancellationToken)
180180
{
181181
var requestResponse = isRequest ? (RequestResponseBase)WebSession.Request : WebSession.Response;
182-
if (requestResponse.OriginalIsBodyRead || !requestResponse.OriginalHasBody)
182+
if (requestResponse.IsBodyRead || !requestResponse.OriginalHasBody)
183183
{
184184
return;
185185
}

0 commit comments

Comments
 (0)