Mercurial > urweb
diff src/c/urweb.c @ 1110:7fc4e0087e50
Proper 404 generation
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 02 Jan 2010 13:31:59 -0500 |
parents | 631a3597c065 |
children | 40d48a2b78a7 |
line wrap: on
line diff
--- a/src/c/urweb.c Fri Jan 01 12:48:06 2010 -0500 +++ b/src/c/urweb.c Sat Jan 02 13:31:59 2010 -0500 @@ -1174,6 +1174,10 @@ 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); }