diff options
author | Brian France <bfrance@php.net> | 2004-08-19 20:26:39 +0000 |
---|---|---|
committer | Brian France <bfrance@php.net> | 2004-08-19 20:26:39 +0000 |
commit | 2f97097e0ffa0e2fd3dfbcd7f1b1af6ec25801e0 (patch) | |
tree | db15416ec20635e4fa8cca97eb57f2f9296ce914 /main/SAPI.c | |
parent | edb7c7d4f57de79255f0112f672f5da95000b779 (diff) | |
download | php-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.c | 1 |
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, |