Mercurial > urweb
comparison 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 |
comparison
equal
deleted
inserted
replaced
1416:a8606c1cfe87 | 1417:d0786ff9bb22 |
---|---|
588 ctx->used_deltas = 0; | 588 ctx->used_deltas = 0; |
589 ctx->client = NULL; | 589 ctx->client = NULL; |
590 ctx->cur_container = NULL; | 590 ctx->cur_container = NULL; |
591 ctx->used_transactionals = 0; | 591 ctx->used_transactionals = 0; |
592 ctx->script_header = ""; | 592 ctx->script_header = ""; |
593 ctx->isPost = ctx->hasPostBody = 0; | 593 ctx->hasPostBody = 0; |
594 ctx->queryString = NULL; | 594 ctx->queryString = NULL; |
595 } | 595 } |
596 | 596 |
597 void uw_reset_keep_request(uw_context ctx) { | 597 void uw_reset_keep_request(uw_context ctx) { |
598 uw_reset_keep_error_message(ctx); | 598 uw_reset_keep_error_message(ctx); |
603 uw_reset_keep_request(ctx); | 603 uw_reset_keep_request(ctx); |
604 if (ctx->app) | 604 if (ctx->app) |
605 memset(ctx->inputs, 0, ctx->app->inputs_len * sizeof(input)); | 605 memset(ctx->inputs, 0, ctx->app->inputs_len * sizeof(input)); |
606 memset(ctx->subinputs, 0, ctx->n_subinputs * sizeof(input)); | 606 memset(ctx->subinputs, 0, ctx->n_subinputs * sizeof(input)); |
607 ctx->used_subinputs = 0; | 607 ctx->used_subinputs = 0; |
608 ctx->isPost = 0; | |
608 } | 609 } |
609 | 610 |
610 failure_kind uw_begin_init(uw_context ctx) { | 611 failure_kind uw_begin_init(uw_context ctx) { |
611 int r = setjmp(ctx->jmp_buf); | 612 int r = setjmp(ctx->jmp_buf); |
612 | 613 |