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 | 0f0ab148c6d444316af10e6b4c7a60630fed45d3 (diff) |
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, ...) 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; |