diff options
author | Lars Hjemli | 2008-08-06 01:20:24 +0200 |
---|---|---|
committer | Lars Hjemli | 2008-08-06 11:21:09 +0200 |
commit | 02a545e63454530c1639014d3239c14ced2022c6 (patch) | |
tree | da4c89a94b117d936f2eeb486c9dedf192e6746e /html.c | |
parent | Added `local-time` option to cgitrc (diff) | |
download | cgit-02a545e63454530c1639014d3239c14ced2022c6.tar.gz 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.c | 7 |
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, ...) | |||
51 | html(buf); | 51 | html(buf); |
52 | } | 52 | } |
53 | 53 | ||
54 | void html_status(int code, int more_headers) | ||
55 | { | ||
56 | htmlf("Status: %d\n", code); | ||
57 | if (!more_headers) | ||
58 | html("\n"); | ||
59 | } | ||
60 | |||
54 | void html_txt(char *txt) | 61 | void html_txt(char *txt) |
55 | { | 62 | { |
56 | char *t = txt; | 63 | char *t = txt; |