diff options
author | Sascha Schumann <sas@php.net> | 1999-12-03 11:46:04 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 1999-12-03 11:46:04 +0000 |
commit | 964bf9f2888a6e87508711f5f1c89f7824ad2bec (patch) | |
tree | 61f4173fb68cfefe9ace8883a1a3dc42bbd551c9 /sapi | |
parent | c34560b53d0a5ac03894252bc67eb7c3ffe44cfc (diff) | |
download | php-git-964bf9f2888a6e87508711f5f1c89f7824ad2bec.tar.gz |
(php_ns_sapi_header_handler): use sapi_free_header()
Diffstat (limited to 'sapi')
-rw-r--r-- | sapi/aolserver/aolserver.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sapi/aolserver/aolserver.c b/sapi/aolserver/aolserver.c index 6acd0a4059..24f8675982 100644 --- a/sapi/aolserver/aolserver.c +++ b/sapi/aolserver/aolserver.c @@ -106,22 +106,22 @@ php_ns_sapi_header_handler(sapi_header_struct *sapi_header, sapi_headers_struct header_name = sapi_header->header; header_content = p = strchr(header_name, ':'); - if(!p) return 0; - - *p = '\0'; - do { - header_content++; - } while(*header_content == ' '); + if (p) { + *p = '\0'; + do { + header_content++; + } while (*header_content == ' '); + + if (!strcasecmp(header_name, "Content-type")) { + Ns_ConnSetTypeHeader(NSG(conn), header_content); + } else { + Ns_ConnSetHeaders(NSG(conn), header_name, header_content); + } - if(!strcasecmp(header_name, "Content-type")) { - Ns_ConnSetTypeHeader(NSG(conn), header_content); - } else { - Ns_ConnSetHeaders(NSG(conn), header_name, header_content); + *p = ':'; } - - *p = ':'; - - efree(sapi_header->header); + + sapi_free_header(sapi_header); return 0; } |