1
0
Fork 0
mirror of https://gitea.quitesimple.org/crtxcr/cgitsb synced 2024-06-03 03:16:10 +02:00

Add Etags for snapshots

This commit is contained in:
Janus 2015-01-17 14:54:31 +01:00 committed by Jason A. Donenfeld
parent c422b9b3d5
commit 1a2eeb94d4

View File

@ -119,6 +119,7 @@ static int make_snapshot(const struct cgit_snapshot_format *format,
cgit_print_error("Not a commit reference: %s", hex);
return 1;
}
ctx.page.etag = sha1_to_hex(sha1);
ctx.page.mimetype = xstrdup(format->mimetype);
ctx.page.filename = xstrdup(filename);
cgit_print_http_headers();