1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #25900 -- Fixed regression in CommonMiddleware ETag support.

This commit is contained in:
Derek J. Curtis
2015-12-09 18:07:02 +07:00
committed by Tim Graham
parent 5bc881541c
commit 6be9589eb3
3 changed files with 16 additions and 1 deletions

View File

@@ -120,7 +120,9 @@ class CommonMiddleware(object):
if response.has_header('ETag'):
return get_conditional_response(
request,
etag=response['ETag'],
# get_conditional_response() requires an unquoted version
# of the response's ETag.
etag=response['ETag'].strip('"'),
response=response,
)