Commit 912826ee authored by Honfika's avatar Honfika

fix

parent 34eeaea5
......@@ -97,7 +97,7 @@ namespace Titanium.Web.Proxy.Helpers
{
foreach (var header in headers)
{
await header.WriteToStreamAsync(this);
await header.WriteToStreamAsync(this, cancellationToken);
}
await WriteLineAsync(cancellationToken);
......
......@@ -100,9 +100,9 @@ namespace Titanium.Web.Proxy.Http
&& !string.IsNullOrEmpty(upstreamProxy.UserName)
&& upstreamProxy.Password != null)
{
await HttpHeader.ProxyConnectionKeepAlive.WriteToStreamAsync(writer);
await HttpHeader.ProxyConnectionKeepAlive.WriteToStreamAsync(writer, cancellationToken);
await HttpHeader.GetProxyAuthorizationHeader(upstreamProxy.UserName, upstreamProxy.Password)
.WriteToStreamAsync(writer);
.WriteToStreamAsync(writer, cancellationToken);
}
//write request headers
......@@ -110,7 +110,7 @@ namespace Titanium.Web.Proxy.Http
{
if (isTransparent || header.Name != KnownHeaders.ProxyAuthorization)
{
await header.WriteToStreamAsync(writer);
await header.WriteToStreamAsync(writer, cancellationToken);
}
}
......
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