summaryrefslogtreecommitdiffabout
path: root/html.c
Side-by-side diff
Diffstat (limited to 'html.c') (more/less context) (show whitespace changes)
-rw-r--r--html.c7
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
@@ -50,8 +50,15 @@ void htmlf(const char *format, ...)
va_end(args);
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;
while(t && *t){