Skip to content

Commit

Permalink
response['ETag'] does *not* always exist after patch_response_headers…
Browse files Browse the repository at this point in the history
… (e.g. when USE_ETAGS = False)
  • Loading branch information
pterk committed Aug 2, 2011
1 parent d92b8d3 commit 7c29219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tinymce/compressor.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,6 @@ def gzip_compressor(request):
patch_response_headers(response, timeout)
cache.set(cacheKey, {
'Last-Modified': response['Last-Modified'],
'ETag': response['ETag'],
'ETag': response.get('ETag', ''),
})
return response

0 comments on commit 7c29219

Please sign in to comment.