]> granicus.if.org Git - php/commitdiff
Fix headers when default content type is used.
authorMarcus Boerger <helly@php.net>
Wed, 4 Sep 2002 15:30:56 +0000 (15:30 +0000)
committerMarcus Boerger <helly@php.net>
Wed, 4 Sep 2002 15:30:56 +0000 (15:30 +0000)
#THIS fixes the problems with error_log()

sapi/cgi/cgi_main.c

index 62eb7e06689e147a6a2e19aef672095a3e1fe40e..28bfb21c893f7daa037b20afb42ba4944876a504 100644 (file)
@@ -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);
        }