Ticket #16632: 16632.patch
File 16632.patch, 566 bytes (added by , 13 years ago) |
---|
-
django/http/utils.py
76 76 77 77 # The first part of the Content-Type field will be the MIME type, 78 78 # everything after ';', such as character-set, can be ignored. 79 if response ['Content-Type'].split(';')[0] not in safe_mime_types:79 if response.get('Content-Type', '').split(';')[0] not in safe_mime_types: 80 80 try: 81 81 del response['Vary'] 82 82 except KeyError: