aboutsummaryrefslogtreecommitdiff
path: root/ui-shared.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'ui-shared.c')
-rw-r--r--ui-shared.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/ui-shared.c b/ui-shared.c
index 29036d0..2630f23 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -34,17 +34,6 @@ void cgit_print_error(char *msg)
html("</div>\n");
}
-char *cgit_httpscheme()
-{
- char *https;
-
- https = getenv("HTTPS");
- if (https != NULL && strcmp(https, "on") == 0)
- return "https://";
- else
- return "http://";
-}
-
char *cgit_hosturl()
{
char *host, *port;
@@ -505,8 +494,7 @@ void cgit_print_docstart(struct cgit_context *ctx)
html("'/>\n");
}
if (host && ctx->repo) {
- html("<link rel='alternate' title='Atom feed' href='");
- html(cgit_httpscheme());
+ html("<link rel='alternate' title='Atom feed' href='http://");
html_attr(cgit_hosturl());
html_attr(cgit_fileurl(ctx->repo->url, "atom", ctx->qry.path,
fmt("h=%s", ctx->qry.head)));