[PATCH 4/8] add xml-header to atom-feed
zwinkau at kit.edu
zwinkau at kit.edu
Tue Jul 1 09:40:29 CEST 2014
From: Matthias Braun <matze at braunis.de>
---
ui-atom.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ui-atom.c b/ui-atom.c
index 6a6a98b..fdc5cb3 100644
--- a/ui-atom.c
+++ b/ui-atom.c
@@ -125,6 +125,7 @@ void cgit_print_atom(char *tip, char *path, int max_count, int enable_atom_diff)
ctx.page.mimetype = "text/xml";
ctx.page.charset = "utf-8";
cgit_print_http_headers();
+ html("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
html("<feed xmlns='http://www.w3.org/2005/Atom'>\n");
html("<title>");
html_txt(ctx.repo->name);
--
1.9.1
More information about the CGit
mailing list