From 82018746530efcbcf17f8cde87033285c2b9a81f Mon Sep 17 00:00:00 2001 From: Vladimir Shabanov Date: Wed, 25 Apr 2012 03:07:07 +0400 Subject: Removed excess zero byte from empty pages. Zero byte sometimes breaks http tunneling in Safari. Empty page is a "Not Modified" response for app.js --- src/c/urweb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/c/urweb.c') 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) { -- cgit v1.2.3