From 8dfcfb9cf823175bb91ba39565524ff95a920809 Mon Sep 17 00:00:00 2001 From: Michael Merickel Date: Wed, 16 Nov 2016 00:17:37 -0600 Subject: clarify the changes in #2810 as bw-incompatible --- CHANGES.txt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index f2f412359..1939ad125 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -26,6 +26,15 @@ Backward Incompatibilities ``pyramid.static.static_view``. This argument was shipped accidentally in Pyramid 1.6. See https://github.com/Pylons/pyramid/pull/2681 +- Change static view to avoid setting the ``Content-Encoding`` response header + to an encoding guessed using Python's ``mimetypes`` module. This was causing + clients to decode the content of gzipped files when downloading them. The + client would end up with a ``foo.txt.gz`` file on disk that was already + decoded, thus should really be ``foo.txt``. Also, the ``Content-Encoding`` + should only have been used if the client itself broadcast support for the + encoding via ``Accept-Encoding`` request headers. + See https://github.com/Pylons/pyramid/pull/2810 + Features -------- @@ -101,12 +110,6 @@ Bug Fixes from previous orders have executed. See https://github.com/Pylons/pyramid/pull/2757 -- Fix static view to avoid setting the ``Content-Encoding`` response header - to an encoding guessed using Python's ``mimetypes`` module. - This was causing clients to decode the content of gzipped files - when downloading them. - See https://github.com/Pylons/pyramid/pull/2810 - Deprecations ------------ -- cgit v1.2.3