diff options
author | Lars Hjemli <hjemli@gmail.com> | 2008-08-06 01:20:24 +0200 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-08-06 11:21:09 +0200 |
commit | 02a545e63454530c1639014d3239c14ced2022c6 (patch) | |
tree | da4c89a94b117d936f2eeb486c9dedf192e6746e /html.c | |
parent | Added `local-time` option to cgitrc (diff) | |
download | cgit-pink-02a545e63454530c1639014d3239c14ced2022c6.tar.gz cgit-pink-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, ...) 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; |