# HG changeset patch # User Vladimir Shabanov # Date 1335308827 -14400 # Node ID 4df4521fbd3b4374eeb4baa03227387948606389 # Parent 7b9775d4a8ce50f43fe79728702b373065e76ccf 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 diff -r 7b9775d4a8ce -r 4df4521fbd3b src/c/urweb.c --- a/src/c/urweb.c Sun Apr 22 10:57:22 2012 -0400 +++ b/src/c/urweb.c Wed Apr 25 03:07:07 2012 +0400 @@ -3207,8 +3207,8 @@ 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) {