neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit 1a2eeb94d42b983213076906eb5c5b85452b2c30
parent c422b9b3d5938a4d386533604d4c0dbedfcb2b6d
Author: Janus <ysangkok@gmail.com>
Date:   Sat, 17 Jan 2015 14:54:31 +0100

Add Etags for snapshots

Diffstat:
Mui-snapshot.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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();