Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
Released version 1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
azzlack committed Apr 17, 2015
1 parent 8b33423 commit 87a88f0
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ var clientCompressionHandler = new ClientCompressionHandler(4096, new GZipCompre
The above code will skip compression for any request/response that is smaller than `4096 bytes` / `4 kB`.

## Version history
#### [1.2.1](https://www.nuget.org/packages/Microsoft.AspNet.WebApi.MessageHandlers.Compression/1.2.1) (current)
#### [1.2.2](https://www.nuget.org/packages/Microsoft.AspNet.WebApi.MessageHandlers.Compression/1.2.2) (current)
* Stop trying to compress requests/responses with no content

#### [1.2.1](https://www.nuget.org/packages/Microsoft.AspNet.WebApi.MessageHandlers.Compression/1.2.1)
* Properly copy HTTP headers from the content that is going to be compressed

#### [1.2.0](https://www.nuget.org/packages/Microsoft.AspNet.WebApi.MessageHandlers.Compression/1.2.0)
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,14 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
try
{
if (response.Content != null)
{
// Buffer content for further processing
await response.Content.LoadIntoBufferAsync();
}
else
{
process = false;
}
}
catch (Exception ex)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Threading;
Expand Down Expand Up @@ -102,10 +101,14 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
try
{
if (response.Content != null)
{
// Buffer content for further processing
await response.Content.LoadIntoBufferAsync();
}
else
{
process = false;
}
}
catch (Exception ex)
{
Expand Down
Binary file modified src/NuGetPackage/NuGet.exe
Binary file not shown.
6 changes: 3 additions & 3 deletions src/NuGetPackage/Package.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>Microsoft.AspNet.WebApi.MessageHandlers.Compression</id>
<version>1.2.1</version>
<version>1.2.2</version>
<title>Microsoft ASP.NET Web API Compression Support</title>
<authors>Ove Andersen</authors>
<owners>EyeCatch</owners>
Expand All @@ -18,7 +18,7 @@ Supported Platforms:
- Portable Class Libraries
</description>
<releaseNotes>
Now properly copies headers from the content it is going to compress.
Stops trying to compress if the response/request does not have any content.
</releaseNotes>
<summary>
Module for ASP.NET Web API that enables GZip and Deflate support for incoming and outgoing requests. Please note that this is not an official Microsoft package.
Expand All @@ -28,7 +28,7 @@ Supported Platforms:
<iconUrl>http://www.eyecatch.no/favicon.ico</iconUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<licenseUrl>http://www.eyecatch.no/licenses/apache-20/</licenseUrl>
<copyright>Copyright EyeCatch 2014</copyright>
<copyright>Copyright EyeCatch 2015</copyright>
<dependencies>
<group>
<dependency id="Microsoft.Net.Http" version="2.2.28" />
Expand Down

0 comments on commit 87a88f0

Please sign in to comment.