diff options
Diffstat (limited to 'ui-snapshot.c')
-rw-r--r-- | ui-snapshot.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui-snapshot.c b/ui-snapshot.c index 7115ec4..582dc31 100644 --- a/ui-snapshot.c +++ b/ui-snapshot.c | |||
@@ -121,7 +121,7 @@ static int make_snapshot(const struct cgit_snapshot_format *format, | |||
121 | } | 121 | } |
122 | ctx.page.mimetype = xstrdup(format->mimetype); | 122 | ctx.page.mimetype = xstrdup(format->mimetype); |
123 | ctx.page.filename = xstrdup(filename); | 123 | ctx.page.filename = xstrdup(filename); |
124 | cgit_print_http_headers(&ctx); | 124 | cgit_print_http_headers(); |
125 | format->write_func(hex, prefix); | 125 | format->write_func(hex, prefix); |
126 | return 0; | 126 | return 0; |
127 | } | 127 | } |
@@ -183,9 +183,9 @@ static void show_error(char *fmt, ...) | |||
183 | va_list ap; | 183 | va_list ap; |
184 | 184 | ||
185 | ctx.page.mimetype = "text/html"; | 185 | ctx.page.mimetype = "text/html"; |
186 | cgit_print_http_headers(&ctx); | 186 | cgit_print_http_headers(); |
187 | cgit_print_docstart(&ctx); | 187 | cgit_print_docstart(); |
188 | cgit_print_pageheader(&ctx); | 188 | cgit_print_pageheader(); |
189 | va_start(ap, fmt); | 189 | va_start(ap, fmt); |
190 | cgit_vprint_error(fmt, ap); | 190 | cgit_vprint_error(fmt, ap); |
191 | va_end(ap); | 191 | va_end(ap); |