summaryrefslogtreecommitdiffabout
path: root/ui-plain.c
Unidiff
Diffstat (limited to 'ui-plain.c') (more/less context) (show whitespace changes)
-rw-r--r--ui-plain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui-plain.c b/ui-plain.c
index 5addd9e..93a3a05 100644
--- a/ui-plain.c
+++ b/ui-plain.c
@@ -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);