]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-blob.c
Merge branch 'master' of git://git.klever.net/patchwork/cgit
[ps-cgit] / ui-blob.c
index dd1bbce32ded3db80bbf43564ea61e52428cfa8d..73a8c1d8e0bcf4534df5b08e9dc2e0ef848e533b 100644 (file)
--- 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);