Added X-Content-Type-Options='nosniff' to the Raw view.

This commit is contained in:
Martin Mahner 2013-12-17 18:11:25 +01:00
parent b4e62fca36
commit 91d40c521a

View file

@ -91,6 +91,7 @@ def snippet_details(request, snippet_id, template_name='dpaste/snippet_details.h
if is_raw: if is_raw:
response['Content-Type'] = 'text/plain;charset=UTF-8' response['Content-Type'] = 'text/plain;charset=UTF-8'
response['X-Content-Type-Options'] = 'nosniff'
return response return response
else: else:
return response return response