summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham.Dumpleton <devnull@localhost>2009-01-03 10:36:39 +0000
committerGraham.Dumpleton <devnull@localhost>2009-01-03 10:36:39 +0000
commitc231da4648e43ed083f83ecb3a1af4a12396a96d (patch)
tree6db1ee07c3935e467ff26d4aa45e93f4ad3907ba
parent9e7539423bc5f0a9591cc044a4a2239a110950cb (diff)
downloadmod_wsgi-c231da4648e43ed083f83ecb3a1af4a12396a96d.tar.gz
Fix bug whereby POST requests where 100-continue was expected by client would
see request content actually truncated and not be available to WSGI application if application running in daemon mode. See issue #121.
-rw-r--r--mod_wsgi.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/mod_wsgi.c b/mod_wsgi.c
index 2b18503..838973e 100644
--- a/mod_wsgi.c
+++ b/mod_wsgi.c
@@ -9417,6 +9417,14 @@ static int wsgi_execute_remote(request_rec *r)
}
}
+ /*
+ * Need to reset request status value to HTTP_OK else it
+ * screws up HTTP input filter when processing a POST
+ * request with 100-continue requirement.
+ */
+
+ r->status = HTTP_OK;
+
/* Transfer any request content which was provided. */
seen_eos = 0;