X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/b608e88adb6f77328288afb6dd0eddf674fc9b5b..f135569b2be3fb1816f802f9a162b3743b735d1c:/ui-blob.c diff --git a/ui-blob.c b/ui-blob.c index 3b29132..ab44659 100644 --- a/ui-blob.c +++ b/ui-blob.c @@ -8,6 +8,7 @@ #include "cgit.h" #include "html.h" +#include "ui-shared.h" void cgit_print_blob(const char *hex, char *path) { @@ -35,7 +36,7 @@ void cgit_print_blob(const char *hex, char *path) } buf[size] = '\0'; - ctx.page.mimetype = "text/plain"; + ctx.page.mimetype = NULL; ctx.page.filename = path; cgit_print_http_headers(&ctx); write(htmlfd, buf, size);