aboutsummaryrefslogtreecommitdiff
path: root/ui-plain.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'ui-plain.c')
-rw-r--r--ui-plain.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/ui-plain.c b/ui-plain.c
index ff85113..58addab 100644
--- a/ui-plain.c
+++ b/ui-plain.c
@@ -37,16 +37,6 @@ static int print_object(const unsigned char *sha1, const char *path)
mimetype = get_mimetype_for_filename(path);
ctx.page.mimetype = mimetype;
- if (!ctx.repo->enable_html_serving) {
- html("X-Content-Type-Options: nosniff\n");
- html("Content-Security-Policy: default-src 'none'\n");
- if (mimetype) {
- /* Built-in white list allows PDF and everything that isn't text/ and application/ */
- if ((!strncmp(mimetype, "text/", 5) || !strncmp(mimetype, "application/", 12)) && strcmp(mimetype, "application/pdf"))
- ctx.page.mimetype = NULL;
- }
- }
-
if (!ctx.page.mimetype) {
if (buffer_is_binary(buf, size)) {
ctx.page.mimetype = "application/octet-stream";