Permalink
Browse files

Use bufferless stream to improve perf and resource usage

Fixes #518
  • Loading branch information...
1 parent 6182eb6 commit e21ceb420a439708085e8280d4b59b7c4dea4037 @davidebbo davidebbo committed Mar 29, 2013
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();
}
}
}

0 comments on commit e21ceb4

Please sign in to comment.