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

Commit

Permalink
Merge pull request #27 from SneakyMax/docs/compression-attribute
Browse files Browse the repository at this point in the history
Updated docs to to refer to the correct usage of CompressionAttribute.
  • Loading branch information
azzlack committed Feb 8, 2016
2 parents 8f7d7c0 + e272be9 commit 9581ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ 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`.

#### Disable compression for endpoint
It is possible to disable compression for a specific endpoint. Just add the `[EnableCompression(false)]` attribute to your endpoint method. (Or the whole controller if you want to disable for all endpoints in it)
It is possible to disable compression for a specific endpoint. Just add the `[Compression(Enabled = false)]` attribute to your endpoint method. (Or the whole controller if you want to disable for all endpoints in it)

#### OWIN Authentication
When using the OWIN Authentication pipeline, you might encounter errors saying that `Server cannot append header after http headers have been sent`. This is a [bug with OWIN](http://katanaproject.codeplex.com/discussions/540202), but as of this moment it has not been fixed.
Expand Down

0 comments on commit 9581ac0

Please sign in to comment.