diff options
author | Lars Hjemli <hjemli@gmail.com> | 2008-08-06 08:20:24 (JST) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-08-06 18:21:09 (JST) |
commit | 02a545e63454530c1639014d3239c14ced2022c6 (patch) | |
tree | da4c89a94b117d936f2eeb486c9dedf192e6746e /html.c | |
parent | 0f0ab148c6d444316af10e6b4c7a60630fed45d3 (diff) | |
download | cgit-02a545e63454530c1639014d3239c14ced2022c6.zip cgit-02a545e63454530c1639014d3239c14ced2022c6.tar.gz |
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
@@ -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; |