diff options
-rw-r--r-- | cgit.c | 2 | ||||
-rw-r--r-- | cgit.h | 1 | ||||
-rw-r--r-- | ui-blob.c | 1 |
3 files changed, 0 insertions, 4 deletions
@@ -314,8 +314,6 @@ static void querystring_cb(const char *name, const char *value) | |||
314 | ctx.qry.path = trim_end(value, '/'); | 314 | ctx.qry.path = trim_end(value, '/'); |
315 | } else if (!strcmp(name, "name")) { | 315 | } else if (!strcmp(name, "name")) { |
316 | ctx.qry.name = xstrdup(value); | 316 | ctx.qry.name = xstrdup(value); |
317 | } else if (!strcmp(name, "mimetype")) { | ||
318 | ctx.qry.mimetype = xstrdup(value); | ||
319 | } else if (!strcmp(name, "s")) { | 317 | } else if (!strcmp(name, "s")) { |
320 | ctx.qry.sort = xstrdup(value); | 318 | ctx.qry.sort = xstrdup(value); |
321 | } else if (!strcmp(name, "showmsg")) { | 319 | } else if (!strcmp(name, "showmsg")) { |
@@ -173,7 +173,6 @@ struct cgit_query { | |||
173 | char *sha2; | 173 | char *sha2; |
174 | char *path; | 174 | char *path; |
175 | char *name; | 175 | char *name; |
176 | char *mimetype; | ||
177 | char *url; | 176 | char *url; |
178 | char *period; | 177 | char *period; |
179 | int ofs; | 178 | int ofs; |
@@ -161,7 +161,6 @@ void cgit_print_blob(const char *hex, char *path, const char *head, int file_onl | |||
161 | } | 161 | } |
162 | 162 | ||
163 | buf[size] = '\0'; | 163 | buf[size] = '\0'; |
164 | ctx.page.mimetype = ctx.qry.mimetype; | ||
165 | if (!ctx.page.mimetype) { | 164 | if (!ctx.page.mimetype) { |
166 | if (buffer_is_binary(buf, size)) | 165 | if (buffer_is_binary(buf, size)) |
167 | ctx.page.mimetype = "application/octet-stream"; | 166 | ctx.page.mimetype = "application/octet-stream"; |