summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-08-06 01:20:24 +0200
committerLars Hjemli <hjemli@gmail.com>2008-08-06 11:21:09 +0200
commit02a545e63454530c1639014d3239c14ced2022c6 (patch)
treeda4c89a94b117d936f2eeb486c9dedf192e6746e /html.c
parent0f0ab148c6d444316af10e6b4c7a60630fed45d3 (diff)
downloadcgit-02a545e63454530c1639014d3239c14ced2022c6.tar.gz
cgit-02a545e63454530c1639014d3239c14ced2022c6.tar.bz2
cgit-02a545e63454530c1639014d3239c14ced2022c6.zip
Add support for cloning over http
This patch implements basic support for cloning over http, based on the work on git-http-backend by Shawn O. Pearce. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'html.c')
-rw-r--r--html.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/html.c b/html.c
index bddb04d..1237076 100644
--- a/html.c
+++ b/html.c
@@ -51,6 +51,13 @@ void htmlf(const char *format, ...)
html(buf);
}
+void html_status(int code, int more_headers)
+{
+ htmlf("Status: %d\n", code);
+ if (!more_headers)
+ html("\n");
+}
+
void html_txt(char *txt)
{
char *t = txt;