X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/01d2dce7e73e3f022d186de27dd5d15574144ca8..d2eb4fddb0fb7cd1751debcff6fe1219b9c619c8:/ui-blob.c?ds=sidebyside 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);