diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2009-04-03 06:59:34 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2009-04-03 06:59:34 +0000 |
| commit | d2a8bc5b40bdceb57d2e23e75ea81ba495e6bbb5 (patch) | |
| tree | 3e237a07d14804ff090edc88aabb6cfec4065e6d /tests | |
| parent | 8d42902f1908c2fd5a894e082d3a8aead75d1c28 (diff) | |
Fixed #10681 -- Work around (by ignoring) invalid ETag headers.
This is a hack to work around problems in the Real World. Apparently, Opera
9.64 has been observed sending malformed headers. We now compromise our high
principles and simply ignore such bad behaviour.
Patch from Ivan Sagalaev.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10370 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/regressiontests/conditional_processing/models.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/regressiontests/conditional_processing/models.py b/tests/regressiontests/conditional_processing/models.py index 756244ab3b..b291aed337 100644 --- a/tests/regressiontests/conditional_processing/models.py +++ b/tests/regressiontests/conditional_processing/models.py @@ -112,6 +112,11 @@ class ConditionalGet(TestCase): response = self.client.get('/condition/last_modified2/') self.assertFullResponse(response, check_etag=False) + def testInvalidETag(self): + self.client.defaults['HTTP_IF_NONE_MATCH'] = r'"\"' + response = self.client.get('/condition/etag/') + self.assertFullResponse(response, check_last_modified=False) + class ETagProcesing(TestCase): def testParsing(self): |
