Commit 6555adc4 authored by Honfika's avatar Honfika

.net 4.5 build fix

parent 425c7ff6
...@@ -91,7 +91,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -91,7 +91,7 @@ namespace Titanium.Web.Proxy.EventArguments
// If not already read (not cached yet) // If not already read (not cached yet)
if (!request.IsBodyRead) if (!request.IsBodyRead)
{ {
if (request.HttpVersion == HttpVersion.Version20) if (request.HttpVersion == HttpHeader.Version20)
{ {
request.Http2BodyData = new MemoryStream(); request.Http2BodyData = new MemoryStream();
request.ReadHttp2BodyTaskCompletionSource = new TaskCompletionSource<bool>(); request.ReadHttp2BodyTaskCompletionSource = new TaskCompletionSource<bool>();
...@@ -155,7 +155,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -155,7 +155,7 @@ namespace Titanium.Web.Proxy.EventArguments
// If not already read (not cached yet) // If not already read (not cached yet)
if (!response.IsBodyRead) if (!response.IsBodyRead)
{ {
if (response.HttpVersion == HttpVersion.Version20) if (response.HttpVersion == HttpHeader.Version20)
{ {
response.Http2BodyData = new MemoryStream(); response.Http2BodyData = new MemoryStream();
response.ReadHttp2BodyTaskCompletionSource = new TaskCompletionSource<bool>(); response.ReadHttp2BodyTaskCompletionSource = new TaskCompletionSource<bool>();
......
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