Unidiff1 files changed, 4 insertions, 0 deletions
|
|
|
@@ -33,2 +33,5 @@ static void print_object(const unsigned char *sha1, const char *path) |
33 | } |
33 | } |
| |
34 | if (buffer_is_binary(buf, size)) |
| |
35 | ctx.page.mimetype = "application/octet-stream"; |
| |
36 | else |
34 | ctx.page.mimetype = "text/plain"; |
37 | ctx.page.mimetype = "text/plain"; |
@@ -36,2 +39,3 @@ static void print_object(const unsigned char *sha1, const char *path) |
36 | ctx.page.size = size; |
39 | ctx.page.size = size; |
| |
40 | ctx.page.etag = sha1_to_hex(sha1); |
37 | cgit_print_http_headers(&ctx); |
41 | cgit_print_http_headers(&ctx); |
|