diff options
Diffstat (limited to 'mod_php3.c')
-rw-r--r-- | mod_php3.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mod_php3.c b/mod_php3.c index 10a9262b00..924124b1ce 100644 --- a/mod_php3.c +++ b/mod_php3.c @@ -152,8 +152,6 @@ int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_headers_str if (!strcasecmp(header_name, "Content-Type")) { r->content_type = pstrdup(r->pool, header_content); - } else if (!strcasecmp(header_name, "Location")) { - r->status = REDIRECT; } else { table_set(r->headers_out, header_name, header_content); } @@ -168,6 +166,7 @@ int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_headers_str int sapi_apache_send_headers(sapi_headers_struct *sapi_headers SLS_DC) { + ((request_rec *) SG(server_context))->status = SG(sapi_headers).http_response_code; send_http_header((request_rec *) SG(server_context)); return SAPI_HEADER_SENT_SUCCESSFULLY; } |