summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vladimir Shabanov <vshabanoff@gmail.com>2012-04-25 03:07:07 +0400
committerGravatar Vladimir Shabanov <vshabanoff@gmail.com>2012-04-25 03:07:07 +0400
commit82018746530efcbcf17f8cde87033285c2b9a81f (patch)
treeda6cae8e698e648476405c80b46af921fe09b098 /src
parente61963ce4e7d78dd54f6207e95b53a1dc40e4230 (diff)
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
Diffstat (limited to 'src')
-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) {