Commit ea20d43f authored by Honfika's avatar Honfika

MemoryStream.Write made non async

parent f5925c52
...@@ -21,7 +21,7 @@ namespace Titanium.Web.Proxy.Decompression ...@@ -21,7 +21,7 @@ namespace Titanium.Web.Proxy.Decompression
int read; int read;
while ((read = await decompressor.ReadAsync(buffer, 0, buffer.Length)) > 0) while ((read = await decompressor.ReadAsync(buffer, 0, buffer.Length)) > 0)
{ {
await output.WriteAsync(buffer, 0, read); output.Write(buffer, 0, read);
} }
return output.ToArray(); return output.ToArray();
......
...@@ -19,8 +19,9 @@ namespace Titanium.Web.Proxy.Decompression ...@@ -19,8 +19,9 @@ namespace Titanium.Web.Proxy.Decompression
int read; int read;
while ((read = await decompressor.ReadAsync(buffer, 0, buffer.Length)) > 0) while ((read = await decompressor.ReadAsync(buffer, 0, buffer.Length)) > 0)
{ {
await output.WriteAsync(buffer, 0, read); output.Write(buffer, 0, read);
} }
return output.ToArray(); return output.ToArray();
} }
} }
......
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