From 91d40c521aa61f6d8898cf82d90dad536ef8b79a Mon Sep 17 00:00:00 2001 From: Martin Mahner Date: Tue, 17 Dec 2013 18:11:25 +0100 Subject: [PATCH] Added X-Content-Type-Options='nosniff' to the Raw view. --- dpaste/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dpaste/views.py b/dpaste/views.py index 36f5a73..629608f 100644 --- a/dpaste/views.py +++ b/dpaste/views.py @@ -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