Commit 0decbffa authored by justcoding121's avatar justcoding121 Committed by justcoding121

Revert "#251 move readbody call used for WinAuth"

This reverts commit ceb7d505941e8c7602d29135c000ba91b96b2145.
parent 68a01f8c
......@@ -322,6 +322,16 @@ namespace Titanium.Web.Proxy
PrepareRequestHeaders(args.WebSession.Request.RequestHeaders, args.WebSession);
args.WebSession.Request.Host = args.WebSession.Request.RequestUri.Authority;
//if win auth is enabled
//we need a cache of request body
//so that we can send it after authentication in WinAuthHandler.cs
if (EnableWinAuth
&& !RunTime.IsRunningOnMono
&& args.WebSession.Request.HasBody)
{
await args.GetRequestBody();
}
//If user requested interception do it
if (BeforeRequest != null)
{
......@@ -403,16 +413,6 @@ namespace Titanium.Web.Proxy
try
{
//if win auth is enabled
//we need a cache of request body
//so that we can send it after authentication in WinAuthHandler.cs
if (EnableWinAuth
&& !RunTime.IsRunningOnMono
&& args.WebSession.Request.HasBody)
{
await args.GetRequestBody();
}
args.WebSession.Request.RequestLocked = true;
//If request was cancelled by user then dispose the client
......
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