]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-blob.c
ui-blob: Do not accept mimetype from user
[ps-cgit] / ui-blob.c
index 1ded8397f5d59d03cd8ecb17705c0c9f69e5e881..2cce11cb976d7bc49f3ec5c776f57043cab76647 100644 (file)
--- a/ui-blob.c
+++ b/ui-blob.c
@@ -161,7 +161,6 @@ void cgit_print_blob(const char *hex, char *path, const char *head, int file_onl
        }
 
        buf[size] = '\0';
-       ctx.page.mimetype = ctx.qry.mimetype;
        if (!ctx.page.mimetype) {
                if (buffer_is_binary(buf, size))
                        ctx.page.mimetype = "application/octet-stream";