summaryrefslogtreecommitdiff
path: root/main/SAPI.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/SAPI.c')
-rw-r--r--main/SAPI.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index 5c1dfe4373..a729eb5c4f 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -290,10 +290,14 @@ SAPI_API void sapi_activate_headers_only(TSRMLS_D)
/* SG(sapi_headers).http_response_code = 200; */
SG(sapi_headers).http_status_line = NULL;
+ SG(read_post_bytes) = 0;
+ SG(request_info).post_data = NULL;
+ SG(request_info).raw_post_data = NULL;
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;
+ SG(global_request_time) = 0;
/*
* It's possible to override this general case in the activate() callback,
@@ -332,6 +336,7 @@ SAPI_API void sapi_activate(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;
SG(global_request_time) = 0;
/* It's possible to override this general case in the activate() callback, if