Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support of the 'Vary' header in response
With this patch, Yaws will add 'Accept-Encoding' in 'Vary' header if the support of gzip compression is enabled or if the response is compressed. The 'Vary' header can be set using 'yaws:outh_set_vary(Fields)' or by returning '{header, {vary, Fields}}' from scripts (where Fields is a list of header names).
- Loading branch information
Christopher Faulet
committed
Jan 3, 2013
1 parent
f5f62b6
commit d748f92
Showing
5 changed files
with
126 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -347,6 +347,7 @@ | |
content_encoding, | ||
transfer_encoding, | ||
www_authenticate, | ||
vary, | ||
other % misc other headers | ||
}). | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters