Diffstat (limited to 'ui-snapshot.c')
| -rw-r--r-- | ui-snapshot.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui-snapshot.c b/ui-snapshot.c index 4449803..67dbbdd 100644 --- a/ui-snapshot.c +++ b/ui-snapshot.c @@ -101,9 +101,7 @@ void cgit_print_snapshot(struct cacheitem *item, const char *head, args.base = fmt("%s/", prefix); args.tree = commit->tree; args.time = commit->date; - ctx.page.mimetype = xstrdup(sat->mimetype); - ctx.page.filename = xstrdup(filename); - cgit_print_http_headers(&ctx); + cgit_print_snapshot_start(sat->mimetype, filename, item); (*sat->write_func)(&args); return; } |