diff src/c/urweb.c @ 1417:d0786ff9bb22

Fix detection of POSTs to error pages
author Adam Chlipala <adam@chlipala.net>
date Sun, 23 Jan 2011 17:27:51 -0500
parents 45bd58736bb2
children 22674ac8ebe6
line wrap: on
line diff
--- a/src/c/urweb.c	Sun Jan 23 15:49:35 2011 -0500
+++ b/src/c/urweb.c	Sun Jan 23 17:27:51 2011 -0500
@@ -590,7 +590,7 @@
   ctx->cur_container = NULL;
   ctx->used_transactionals = 0;
   ctx->script_header = "";
-  ctx->isPost = ctx->hasPostBody = 0;
+  ctx->hasPostBody = 0;
   ctx->queryString = NULL;
 }
 
@@ -605,6 +605,7 @@
     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;
 }
 
 failure_kind uw_begin_init(uw_context ctx) {