From: Marcus Boerger Date: Wed, 4 Sep 2002 15:30:56 +0000 (+0000) Subject: Fix headers when default content type is used. X-Git-Tag: RELEASE_0_91~115 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0b25d07f155f2bac76c2af8a4e5e2758fe3722e3;p=php Fix headers when default content type is used. #THIS fixes the problems with error_log() --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 62eb7e0668..28bfb21c89 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -215,9 +215,9 @@ static int sapi_cgi_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC) char *hd; hd = sapi_get_default_content_type(TSRMLS_C); - PHPWRITE("Content-type: ", sizeof("Content-type: ")-1); - PHPWRITE(hd, strlen(hd)); - PHPWRITE("\r\n", 2); + PHPWRITE_H("Content-type: ", sizeof("Content-type: ")-1); + PHPWRITE_H(hd, strlen(hd)); + PHPWRITE_H("\r\n", 2); efree(hd); }