Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
Merge pull request #1314 from gittip/bad-reset-1308
Browse files Browse the repository at this point in the history
Don't send Content-Type for 304; fixes #1308
  • Loading branch information
clone1018 committed Aug 9, 2013
2 parents bb9d260 + 4ae635e commit 5ece570
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gittip/cache_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ def outbound(response):
response.headers.cookie.clear()

if response.code == 304:

# https://github.com/gittip/www.gittip.com/issues/1308
del response.headers['Content-Type']

return response

if website.cache_static:
Expand Down

0 comments on commit 5ece570

Please sign in to comment.