]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-blob.c
Add struct cgit_page to cgit_context
[ps-cgit] / ui-blob.c
index be4fb88b690bbb04beb9fd371b1df2bcbe12a8d2..bd44574e4caf07af4d25ed135e4abb05a4bc0349 100644 (file)
--- a/ui-blob.c
+++ b/ui-blob.c
@@ -35,6 +35,8 @@ void cgit_print_blob(struct cacheitem *item, const char *hex, char *path)
        }
 
        buf[size] = '\0';
-       cgit_print_snapshot_start("text/plain", path, item);
+       ctx.page.mimetype = "text/plain";
+       ctx.page.filename = path;
+       cgit_print_http_headers(&ctx);
        write(htmlfd, buf, size);
 }