From: cgit at cryptocrack.de (Lukas Fleischer)
Subject: [PATCH] Add Etags for snapshots
Date: Sat, 17 Jan 2015 14:54:31 +0100 [thread overview]
Message-ID: <1421502871-7376-1-git-send-email-cgit@cryptocrack.de> (raw)
From: Janus <ysangkok at gmail.com>
---
Sending this on behalf of Janus who cannot post to the list for some
reason.
ui-snapshot.c | 1 +
1 file changed, 1 insertion(+)
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();
--
2.2.2
next reply other threads:[~2015-01-17 13:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-17 13:54 cgit [this message]
2015-01-19 11:18 ` Jason
[not found] <CAKBpzhn6ZORwi5dDs2DcQ1qJgAsSe0o5-TqB-=c2_oYgSBT+mQ@mail.gmail.com>
2015-01-27 21:14 ` Fwd: " ysangkok
2015-01-28 12:43 ` Jason
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1421502871-7376-1-git-send-email-cgit@cryptocrack.de \
--to=cgit@lists.zx2c4.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).