Unidiff1 files changed, 7 insertions, 0 deletions
|
diff --git a/html.c b/html.c index bddb04d..1237076 100644 --- a/ html.c+++ b/ html.c |
|
@@ -50,8 +50,15 @@ void htmlf(const char *format, ...) |
50 | va_end(args); |
50 | va_end(args); |
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; |
57 | while(t && *t){ |
64 | while(t && *t){ |
|