Add Etags for snapshots
Janus ysangkok@gmail.com
Sat, 17 Jan 2015 14:54:31 +0100
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
ui-snapshot.c
→
ui-snapshot.c
@@ -119,6 +119,7 @@ if (!lookup_commit_reference(sha1)) {
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();