changeset 1461:fb88d64abec8

Prevent early clearing of context post data
author Adam Chlipala <adam@chlipala.net>
date Sun, 22 May 2011 13:32:29 -0400
parents 4f4f104259fb
children c12ceb891350
files src/c/urweb.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/c/urweb.c	Tue May 17 16:02:19 2011 -0400
+++ b/src/c/urweb.c	Sun May 22 13:32:29 2011 -0400
@@ -600,7 +600,6 @@
   ctx->cur_container = NULL;
   ctx->used_transactionals = 0;
   ctx->script_header = "";
-  ctx->hasPostBody = 0;
   ctx->queryString = NULL;
 }
 
@@ -614,8 +613,7 @@
   if (ctx->app)
     memset(ctx->inputs, 0, ctx->app->inputs_len * sizeof(input));
   memset(ctx->subinputs, 0, ctx->n_subinputs * sizeof(input));
-  ctx->used_subinputs = 0;
-  ctx->isPost = 0;
+  ctx->used_subinputs = ctx->hasPostBody = ctx->isPost = 0;
 }
 
 failure_kind uw_begin_init(uw_context ctx) {