ui-blob: always use generic mimetypes
Jason A. Donenfeld Jason@zx2c4.com
Thu, 14 Jan 2016 14:31:53 +0100
1 files changed,
4 insertions(+),
6 deletions(-)
jump to
M
ui-blob.c
→
ui-blob.c
@@ -161,12 +161,10 @@ return;
} buf[size] = '\0'; - if (!ctx.page.mimetype) { - if (buffer_is_binary(buf, size)) - ctx.page.mimetype = "application/octet-stream"; - else - ctx.page.mimetype = "text/plain"; - } + if (buffer_is_binary(buf, size)) + ctx.page.mimetype = "application/octet-stream"; + else + ctx.page.mimetype = "text/plain"; ctx.page.filename = path; cgit_print_http_headers(); html_raw(buf, size);