diff options
author | Zeev Suraski <zeev@php.net> | 1999-05-11 18:36:35 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 1999-05-11 18:36:35 +0000 |
commit | 9fd708a313ac04120325ea52b0c75f2d61584a0a (patch) | |
tree | d0a26b04adcfecb9c5bd0e76d06bdb086634418a /mod_php3.c | |
parent | 473d1d7cf13f7cd76a2d515fbde62694c2f504fd (diff) | |
download | php-git-9fd708a313ac04120325ea52b0c75f2d61584a0a.tar.gz |
Handle the Location: header centrally for all SAPI modules.
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; } |