X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/f3c1a187fe2bc33f8423cd535d5045899699995b..90f64ad96d2e4490d68db71554ebce7a54206f80:/ui-blob.c diff --git a/ui-blob.c b/ui-blob.c index bd44574..ab44659 100644 --- a/ui-blob.c +++ b/ui-blob.c @@ -8,8 +8,9 @@ #include "cgit.h" #include "html.h" +#include "ui-shared.h" -void cgit_print_blob(struct cacheitem *item, const char *hex, char *path) +void cgit_print_blob(const char *hex, char *path) { unsigned char sha1[20]; @@ -35,7 +36,7 @@ void cgit_print_blob(struct cacheitem *item, 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);