summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Schlossnagle <gschlossnagle@php.net>2002-10-08 06:42:54 +0000
committerGeorge Schlossnagle <gschlossnagle@php.net>2002-10-08 06:42:54 +0000
commita4ec6e9fa15e2b00b0c93f172531f2ba51a3cc30 (patch)
tree334c1880bb9da680e9d3c248c85d3b876a814f33
parent7adb8e0ba90aa780005a25babb95a19600da797a (diff)
downloadphp-git-a4ec6e9fa15e2b00b0c93f172531f2ba51a3cc30.tar.gz
headers code cleanup
-rw-r--r--main/SAPI.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index 4d256d7f5c..98f5b14951 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -291,7 +291,6 @@ SAPI_API void sapi_activate_headers_only(TSRMLS_D)
SG(sapi_headers).http_response_code = 200;
*/
SG(sapi_headers).http_status_line = NULL;
- SG(headers_sent) = 0;
SG(request_info).current_user = NULL;
SG(request_info).current_user_length = 0;
SG(request_info).no_headers = 0;
@@ -315,7 +314,6 @@ SAPI_API void sapi_activate_headers_only(TSRMLS_D)
SAPI_API void sapi_activate(TSRMLS_D)
{
void (*post_reader_func)(TSRMLS_D);
- SG(headers_sent) = 0;
SG(read_post_bytes) = 0;
SG(request_info).post_data = NULL;
/* It's possible to override this general case in the activate() callback, if
@@ -399,6 +397,7 @@ SAPI_API void sapi_deactivate(TSRMLS_D)
}
sapi_send_headers_free(TSRMLS_C);
SG(sapi_started) = 0;
+ SG(headers_sent) = 0;
SG(request_info).headers_read = 0;
}