From 786669f33160dd860121a351e15608be5598d1ae Mon Sep 17 00:00:00 2001 From: Adam Chlipala Date: Sun, 22 May 2011 13:32:29 -0400 Subject: Prevent early clearing of context post data --- src/c/urweb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/c/urweb.c b/src/c/urweb.c index 1ca45836..d440ed47 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -600,7 +600,6 @@ void uw_reset_keep_error_message(uw_context ctx) { ctx->cur_container = NULL; ctx->used_transactionals = 0; ctx->script_header = ""; - ctx->hasPostBody = 0; ctx->queryString = NULL; } @@ -614,8 +613,7 @@ void uw_reset(uw_context ctx) { 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) { -- cgit v1.2.3