diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-04-07 13:19:23 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2017-04-07 13:19:23 +0200 |
commit | c512794f54894b75f3fea0b07a2d5ffc81f3be96 (patch) | |
tree | 57013c347be9eb7e75514e039af9dc3f05bff08c /proposals/278-directory-compression-scheme-negotiation.txt | |
parent | 7401488308ec5de485cdf745199c3ed87dfd930a (diff) | |
download | torspec-c512794f54894b75f3fea0b07a2d5ffc81f3be96.tar.gz torspec-c512794f54894b75f3fea0b07a2d5ffc81f3be96.zip |
Prop #278: Be explicit about handling both ".z"-suffixes and "plaintext" files.
Diffstat (limited to 'proposals/278-directory-compression-scheme-negotiation.txt')
-rw-r--r-- | proposals/278-directory-compression-scheme-negotiation.txt | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/proposals/278-directory-compression-scheme-negotiation.txt b/proposals/278-directory-compression-scheme-negotiation.txt index b1f2808..b62c69a 100644 --- a/proposals/278-directory-compression-scheme-negotiation.txt +++ b/proposals/278-directory-compression-scheme-negotiation.txt @@ -88,12 +88,14 @@ Target: N/A Accept-Encoding: x-zstd, x-lzma2, gzip, deflate When a directory server receives a request with the "Accept-Encoding" - header included it must decide on a mutually supported compression - scheme and add the "Content-Encoding" header to its response and thus - notifying the client of its decision. The "Content-Encoding" header - can at most contain one supported compression scheme. If no mutual - compression scheme can be negotiated the server must respond with an - HTTP error status code of 415 "Unsupported Media Type". + header included, to either the ".z" compressed or the uncompressed + version of any given document, it must decide on a mutually supported + compression scheme and add the "Content-Encoding" header to its + response and thus notifying the client of its decision. The + "Content-Encoding" header can at most contain one supported + compression scheme. If no mutual compression scheme can be negotiated + the server must respond with an HTTP error status code of 415 + "Unsupported Media Type". For example: |