diff options
author | Marcus Boerger <helly@php.net> | 2002-09-04 15:30:56 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2002-09-04 15:30:56 +0000 |
commit | 0b25d07f155f2bac76c2af8a4e5e2758fe3722e3 (patch) | |
tree | 6a7bfecb8cb18d227d2d1e951e196c9bc14addc2 /sapi/cgi | |
parent | e8f6654663ddbe1ea7a6c3076801f4b841f2bd57 (diff) | |
download | php-git-0b25d07f155f2bac76c2af8a4e5e2758fe3722e3.tar.gz |
Fix headers when default content type is used.
#THIS fixes the problems with error_log()
Diffstat (limited to 'sapi/cgi')
-rw-r--r-- | sapi/cgi/cgi_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } |