Ticket #15046: chromeframe_fix_rev_15168.diff
File chromeframe_fix_rev_15168.diff, 1.0 KB (added by , 14 years ago) |
---|
-
django/http/utils.py
38 38 while expecting the browser to cache it (only when the browser is IE). This 39 39 leads to IE not allowing the client to download. 40 40 """ 41 if 'MSIE' not in request.META.get('HTTP_USER_AGENT', '').upper(): 41 useragent = request.META.get('HTTP_USER_AGENT', '').upper() 42 if 'MSIE' not in useragent and 'CHROMEFRAME' not in useragent: 42 43 return response 43 44 44 45 offending_headers = ('no-cache', 'no-store') … … 66 67 by clearing the Vary header whenever the mime-type is not safe 67 68 enough for Internet Explorer to handle. Poor thing. 68 69 """ 69 if 'MSIE' not in request.META.get('HTTP_USER_AGENT', '').upper(): 70 useragent = request.META.get('HTTP_USER_AGENT', '').upper() 71 if 'MSIE' not in useragent and 'CHROMEFRAME' not in useragent: 70 72 return response 71 73 72 74 # These mime-types that are decreed "Vary-safe" for IE: