aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff refs
from: back
to: back
| flip
diff options
context:
space:
mode:
Diffstat (limited to 'html.c')
-rw-r--r--html.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/html.c b/html.c
index 959148c..a47cff0 100644
--- a/html.c
+++ b/html.c
@@ -121,6 +121,13 @@ void html_vtxtf(const char *format, va_list ap)
strbuf_release(&buf);
}
+void html_status(int code, const char *msg, int more_headers)
+{
+ htmlf("Status: %d %s\n", code, msg);
+ if (!more_headers)
+ html("\n");
+}
+
void html_txt(const char *txt)
{
const char *t = txt;