From: Evan Klinger Date: Sun, 19 Dec 1999 02:04:20 +0000 (+0000) Subject: Fix for #2994 X-Git-Tag: PRE_LIBZEND_TO_ZEND~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=497b3fe2c59f74ee939830ff839506d3ff825e88;p=php Fix for #2994 --- diff --git a/main/SAPI.c b/main/SAPI.c index 09b1823f18..e0648bd8eb 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -302,10 +302,10 @@ SAPI_API int sapi_send_headers() http_status_line.header_len = strlen(SG(sapi_headers).http_status_line); sapi_module.send_header(&http_status_line, SG(server_context)); } - if (SG(sapi_headers).send_default_content_type) { - sapi_module.send_header(&default_header, SG(server_context)); - } zend_llist_apply_with_argument(&SG(sapi_headers).headers, (void (*)(void *, void *)) sapi_module.send_header, SG(server_context)); + if(SG(sapi_headers).send_default_content_type) { + sapi_module.send_header(&default_header,SG(server_context)); + } sapi_module.send_header(NULL, SG(server_context)); SG(headers_sent) = 1; ret = SUCCESS;