Commit 61b4e75d authored by Honfika's avatar Honfika

Fix for fix for #289:)

parent d05aa8c4
...@@ -80,7 +80,7 @@ namespace Titanium.Web.Proxy.Http ...@@ -80,7 +80,7 @@ namespace Titanium.Web.Proxy.Http
var requestLines = new StringBuilder(); var requestLines = new StringBuilder();
//prepare the request & headers //prepare the request & headers
requestLines.AppendLine($"{Request.Method} {Request.OriginalRequestUrl} HTTP/{Request.HttpVersion.Major}.{Request.HttpVersion.Minor}"); requestLines.AppendLine($"{Request.Method} {Request.RequestUri.PathAndQuery} HTTP/{Request.HttpVersion.Major}.{Request.HttpVersion.Minor}");
//Send Authentication to Upstream proxy if needed //Send Authentication to Upstream proxy if needed
......
...@@ -320,6 +320,7 @@ namespace Titanium.Web.Proxy ...@@ -320,6 +320,7 @@ namespace Titanium.Web.Proxy
} }
PrepareRequestHeaders(args.WebSession.Request.RequestHeaders); PrepareRequestHeaders(args.WebSession.Request.RequestHeaders);
args.WebSession.Request.Host = args.WebSession.Request.RequestUri.Authority;
#if NET45 #if NET45
//if win auth is enabled //if win auth is enabled
......
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