summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
authorfoobar <sniper@php.net>2001-09-03 02:31:56 +0000
committerfoobar <sniper@php.net>2001-09-03 02:31:56 +0000
commite46decaa32f833437551c3e7a705679d454b65f9 (patch)
tree96e7e2bd1630807d528237f6d62c7883993f40a4 /main/SAPI.c
parent0cb6a319064cfe2743cdffe248359bf8d5133c0a (diff)
downloadphp-git-e46decaa32f833437551c3e7a705679d454b65f9.tar.gz
First step for chunkifying the HTTP uploads.
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index 3201480b32..160dcb8156 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -157,10 +157,15 @@ static void sapi_read_post_data(TSRMLS_D)
if (oldchar) {
*(p-1) = oldchar;
}
- post_reader_func(TSRMLS_C);
+
SG(request_info).content_type_dup = content_type;
- if(PG(always_populate_raw_post_data) && sapi_module.default_post_reader) {
- sapi_module.default_post_reader(TSRMLS_C);
+
+ if(post_reader_func) {
+ post_reader_func(TSRMLS_C);
+
+ if(PG(always_populate_raw_post_data) && sapi_module.default_post_reader) {
+ sapi_module.default_post_reader(TSRMLS_C);
+ }
}
}