diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-06-09 21:24:05 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-06-10 08:42:31 +0200 |
| commit | df09d854828bcff56eb72f48ff1ba8fce7e90c90 (patch) | |
| tree | e76d45e66bc656a102587b9b4753cd7a4d4f2ae4 /tests | |
| parent | fea8ccdcc4fa47ea1d494843624c92197b4f2153 (diff) | |
Fixed #17552 -- Removed a hack for IE6 and earlier.
It prevented the GZipMiddleware from compressing some data types even on
more recent version of IE where the corresponding bug was fixed.
Thanks Aaron Cannon for the report and Tim Graham for the review.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/middleware/tests.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/middleware/tests.py b/tests/middleware/tests.py index 98420501a6..7df1d04418 100644 --- a/tests/middleware/tests.py +++ b/tests/middleware/tests.py @@ -613,16 +613,6 @@ class GZipMiddlewareTest(TestCase): self.assertEqual(r.content, self.compressible_string) self.assertEqual(r.get('Content-Encoding'), 'deflate') - def test_no_compress_ie_js_requests(self): - """ - Tests that compression isn't performed on JavaScript requests from Internet Explorer. - """ - self.req.META['HTTP_USER_AGENT'] = 'Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)' - self.resp['Content-Type'] = 'application/javascript; charset=UTF-8' - r = GZipMiddleware().process_response(self.req, self.resp) - self.assertEqual(r.content, self.compressible_string) - self.assertEqual(r.get('Content-Encoding'), None) - def test_no_compress_uncompressible_response(self): """ Tests that compression isn't performed on responses with uncompressible content. |
