mirror of
https://github.com/DarrenOfficial/dpaste.git
synced 2024-11-15 08:02:54 +11:00
Added X-Content-Type-Options='nosniff' to the Raw view.
This commit is contained in:
parent
b4e62fca36
commit
91d40c521a
1 changed files with 1 additions and 0 deletions
|
@ -91,6 +91,7 @@ def snippet_details(request, snippet_id, template_name='dpaste/snippet_details.h
|
|||
|
||||
if is_raw:
|
||||
response['Content-Type'] = 'text/plain;charset=UTF-8'
|
||||
response['X-Content-Type-Options'] = 'nosniff'
|
||||
return response
|
||||
else:
|
||||
return response
|
||||
|
|
Loading…
Reference in a new issue