Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use bufferless stream to improve perf and resource usage

Fixes #518
  • Loading branch information...
commit e21ceb420a439708085e8280d4b59b7c4dea4037 1 parent 6182eb6
@davidebbo davidebbo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 Kudu.Services/HttpRequestExtensions.cs
View
4 Kudu.Services/HttpRequestExtensions.cs
@@ -12,10 +12,10 @@ public static Stream GetInputStream(this HttpRequestBase request)
if (contentEncoding != null && contentEncoding.Contains("gzip"))
{
- return new GZipStream(request.InputStream, CompressionMode.Decompress);
+ return new GZipStream(request.GetBufferlessInputStream(), CompressionMode.Decompress);
}
- return request.InputStream;
+ return request.GetBufferlessInputStream();
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.