all repos — cgit @ 1a2eeb94d42b983213076906eb5c5b85452b2c30

a hyperfast web frontend for git written in c

Add Etags for snapshots
Janus ysangkok@gmail.com
Sat, 17 Jan 2015 14:54:31 +0100
commit

1a2eeb94d42b983213076906eb5c5b85452b2c30

parent

c422b9b3d5938a4d386533604d4c0dbedfcb2b6d

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M ui-snapshot.cui-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();