From 0b25d07f155f2bac76c2af8a4e5e2758fe3722e3 Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Wed, 4 Sep 2002 15:30:56 +0000 Subject: Fix headers when default content type is used. #THIS fixes the problems with error_log() --- sapi/cgi/cgi_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sapi/cgi/cgi_main.c') 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); } -- cgit v1.2.1