From 56de35fede259cc08e14e6818b407d0fc2096436 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(-) 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