summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
authorBrian France <bfrance@php.net>2004-08-19 20:26:39 +0000
committerBrian France <bfrance@php.net>2004-08-19 20:26:39 +0000
commit2f97097e0ffa0e2fd3dfbcd7f1b1af6ec25801e0 (patch)
treedb15416ec20635e4fa8cca97eb57f2f9296ce914 /main/SAPI.c
parentedb7c7d4f57de79255f0112f672f5da95000b779 (diff)
downloadphp-git-2f97097e0ffa0e2fd3dfbcd7f1b1af6ec25801e0.tar.gz
If you send a post with a content-type header and then the next post without the content-type header, raw_post_data will not be set. This is because SG(request_info).post_entry is set to the first requests function pointer which makes it follow the wrong code path.
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index eff50f63a1..34e104cea6 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -296,6 +296,7 @@ SAPI_API void sapi_activate_headers_only(TSRMLS_D)
SG(request_info).current_user = NULL;
SG(request_info).current_user_length = 0;
SG(request_info).no_headers = 0;
+ SG(request_info).post_entry = NULL;
/*
* It's possible to override this general case in the activate() callback,