summaryrefslogtreecommitdiff
path: root/src/c/urweb.c
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adamc@hcoop.net>2010-01-02 13:31:59 -0500
committerGravatar Adam Chlipala <adamc@hcoop.net>2010-01-02 13:31:59 -0500
commitc8de04e4f81490bfde750375c55de2a260072e82 (patch)
tree8003213999cf3e6ad98db16c29cd135654599d1a /src/c/urweb.c
parent96ab8b7ac77b4b13e1aaa9afe35834ff60a6759b (diff)
Proper 404 generation
Diffstat (limited to 'src/c/urweb.c')
-rw-r--r--src/c/urweb.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index e7495347..1bfb3cd5 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -1174,6 +1174,10 @@ void uw_write_header(uw_context ctx, uw_Basis_string s) {
ctx->outHeaders.front += len;
}
+void uw_clear_headers(uw_context ctx) {
+ buf_reset(&ctx->outHeaders);
+}
+
static void uw_check_script(uw_context ctx, size_t extra) {
buf_check(&ctx->script, extra);
}