Commit a5f51db3 authored by justcoding121's avatar justcoding121 Committed by justcoding121

#261 cleanup

parent 4b68e153
...@@ -80,17 +80,8 @@ namespace Titanium.Web.Proxy.Http ...@@ -80,17 +80,8 @@ namespace Titanium.Web.Proxy.Http
var requestLines = new StringBuilder(); var requestLines = new StringBuilder();
//prepare the request & headers //prepare the request & headers
if (ServerConnection.UpStreamHttpProxy != null
&& ServerConnection.IsHttps == false
|| ServerConnection.UpStreamHttpsProxy != null
&& ServerConnection.IsHttps)
{
requestLines.AppendLine($"{Request.Method} {Request.RequestUri.PathAndQuery} HTTP/{Request.HttpVersion.Major}.{Request.HttpVersion.Minor}");
}
else
{
requestLines.AppendLine($"{Request.Method} {Request.RequestUri.PathAndQuery} 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
if (ServerConnection.UpStreamHttpProxy != null if (ServerConnection.UpStreamHttpProxy != null
......
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