summaryrefslogtreecommitdiff
path: root/src/c/urweb.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c/urweb.c')
-rw-r--r--src/c/urweb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c
index 54ca5927..2d26d0b2 100644
--- a/src/c/urweb.c
+++ b/src/c/urweb.c
@@ -3207,8 +3207,8 @@ void uw_commit(uw_context ctx) {
if (ctx->transactionals[i].free)
ctx->transactionals[i].free(ctx->transactionals[i].data, 0);
- if (*ctx->page.front)
- uw_writec(ctx, 0);
+ uw_check(ctx, 1);
+ *ctx->page.front = 0;
// Splice script data into appropriate part of page
if (ctx->returning_indirectly || ctx->script_header[0] == 0) {