From: Janus Date: Sat, 17 Jan 2015 13:54:31 +0000 (+0100) Subject: Add Etags for snapshots X-Git-Tag: v0.11.0~7 X-Git-Url: https://git.cameronkatri.com/cgit.git/commitdiff_plain/1a2eeb94d42b983213076906eb5c5b85452b2c30 Add Etags for snapshots --- diff --git a/ui-snapshot.c b/ui-snapshot.c index ea77eb4..cb34f4b 100644 --- a/ui-snapshot.c +++ b/ui-snapshot.c @@ -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();