]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-snapshot.c
Add struct cgit_page to cgit_context
[ps-cgit] / ui-snapshot.c
index 67dbbdda833c048ffba4801c84b043f0442ad034..444980369df9318701ec1f6e5e6dd7930b17900d 100644 (file)
@@ -101,7 +101,9 @@ void cgit_print_snapshot(struct cacheitem *item, const char *head,
                args.base = fmt("%s/", prefix);
                args.tree = commit->tree;
                args.time = commit->date;
-               cgit_print_snapshot_start(sat->mimetype, filename, item);
+               ctx.page.mimetype = xstrdup(sat->mimetype);
+               ctx.page.filename = xstrdup(filename);
+               cgit_print_http_headers(&ctx);
                (*sat->write_func)(&args);
                return;
        }