diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Print the raw-content headers with the rest
Diffstat (limited to '')
-rw-r--r--source/ui-snapshot.c6
1 file changed, 1 insertion, 5 deletions
diff --git a/source/ui-snapshot.c b/source/ui-snapshot.c
index 3a14e16..3880f43 100644
--- a/source/ui-snapshot.c
+++ b/source/ui-snapshot.c
@@ -235,11 +235,7 @@ static int send_sig(const struct cgit_snapshot_format *format,
return 0;
}
- // The body is whatever bytes the note holds, so these go out ahead of
- // the usual headers to stop a browser sniffing it into a type it will
- // act on.
- html("X-Content-Type-Options: nosniff\n");
- html("Content-Security-Policy: default-src 'none'\n");
+ ctx.page.untrusted = 1;
ctx.page.mimetype = xstrdup("application/pgp-signature");
ctx.page.filename = xstrdup(sig_filename);
cgit_print_http_headers();