X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/01d2dce7e73e3f022d186de27dd5d15574144ca8..29b37e9781ce1bb04e558c7490d2c29eb1a477e5:/ui-blob.c diff --git a/ui-blob.c b/ui-blob.c index dd1bbce..73a8c1d 100644 --- a/ui-blob.c +++ b/ui-blob.c @@ -65,7 +65,7 @@ void cgit_print_blob(const char *hex, char *path, const char *head) } buf[size] = '\0'; - ctx.page.mimetype = NULL; + ctx.page.mimetype = ctx.qry.mimetype; ctx.page.filename = path; cgit_print_http_headers(&ctx); write(htmlfd, buf, size);