diff options
author | Lars Hjemli <hjemli@gmail.com> | 2008-09-02 05:40:24 (JST) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2008-09-02 05:40:24 (JST) |
commit | 288d502b3d8e7fa916104b486bbb146521e5c716 (patch) | |
tree | afa132f6c973ab30e0b8ed1201fb691fe91103c0 /html.c | |
parent | 2cecf839a06ce951db0d5d95abf79004eff33ca7 (diff) | |
parent | 02a545e63454530c1639014d3239c14ced2022c6 (diff) | |
download | cgit-288d502b3d8e7fa916104b486bbb146521e5c716.zip cgit-288d502b3d8e7fa916104b486bbb146521e5c716.tar.gz |
Merge branch 'lh/clone'
* lh/clone:
Add support for cloning over http
Conflicts:
cmd.c
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; |