author | Diego Ongaro <ongardie@gmail.com> | 2009-06-10 23:18:34 (UTC) |
---|---|---|
committer | Diego Ongaro <ongardie@gmail.com> | 2009-06-11 05:01:32 (UTC) |
commit | 694dd43886f23723f415aed3afb62131cdbcaa51 (patch) (side-by-side diff) | |
tree | 891ce59bcac2673e9ca294cfa83e69eec23ccbd5 | |
parent | 87a89aed41136d388537b146000c4af6c1135a8c (diff) | |
download | cgit-694dd43886f23723f415aed3afb62131cdbcaa51.zip cgit-694dd43886f23723f415aed3afb62131cdbcaa51.tar.gz cgit-694dd43886f23723f415aed3afb62131cdbcaa51.tar.bz2 |
use cgit_httpscheme() for atom feed
-rw-r--r-- | ui-atom.c | 6 | ||||
-rw-r--r-- | ui-shared.c | 3 |
2 files changed, 6 insertions, 3 deletions
@@ -53,5 +53,6 @@ void add_entry(struct commit *commit, char *host) html("</published>\n"); if (host) { - html("<link rel='alternate' type='text/html' href='http://"); + html("<link rel='alternate' type='text/html' href='"); + html(cgit_httpscheme()); html_attr(host); html_attr(cgit_pageurl(ctx.repo->url, "commit", NULL)); @@ -114,5 +115,6 @@ void cgit_print_atom(char *tip, char *path, int max_count) html("</subtitle>\n"); if (host) { - html("<link rel='alternate' type='text/html' href='http://"); + html("<link rel='alternate' type='text/html' href='"); + html(cgit_httpscheme()); html_attr(host); html_attr(cgit_repourl(ctx.repo->url)); diff --git a/ui-shared.c b/ui-shared.c index 749ea35..5ce2bc5 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -504,5 +504,6 @@ void cgit_print_docstart(struct cgit_context *ctx) } if (host && ctx->repo) { - html("<link rel='alternate' title='Atom feed' href='http://"); + html("<link rel='alternate' title='Atom feed' href='"); + html(cgit_httpscheme()); html_attr(cgit_hosturl()); html_attr(cgit_fileurl(ctx->repo->url, "atom", ctx->qry.path, |