Commit 9c56e635 authored by rob.lascelles's avatar rob.lascelles

This allows server to read body, and to cancel request to the server - but I don't know why!

parent 4848e5d7
...@@ -179,7 +179,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -179,7 +179,7 @@ namespace Titanium.Web.Proxy.EventArguments
internal async Task SyphonOutBodyAsync(bool isRequest, CancellationToken cancellationToken) internal async Task SyphonOutBodyAsync(bool isRequest, CancellationToken cancellationToken)
{ {
var requestResponse = isRequest ? (RequestResponseBase)WebSession.Request : WebSession.Response; var requestResponse = isRequest ? (RequestResponseBase)WebSession.Request : WebSession.Response;
if (requestResponse.OriginalIsBodyRead || !requestResponse.OriginalHasBody) if (requestResponse.IsBodyRead || !requestResponse.OriginalHasBody)
{ {
return; return;
} }
......
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