List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH] Add Etags for snapshots
@ 2015-01-17 13:54 cgit
  2015-01-19 11:18 ` Jason
  0 siblings, 1 reply; 3+ messages in thread
From: cgit @ 2015-01-17 13:54 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <CAKBpzhn6ZORwi5dDs2DcQ1qJgAsSe0o5-TqB-=c2_oYgSBT+mQ@mail.gmail.com>]

end of thread, other threads:[~2015-01-28 12:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-17 13:54 [PATCH] Add Etags for snapshots cgit
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

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).