mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
fix obvious crash.
stig, in sgi-mode i still "only" get: (haven't touched my .ini file in ages - and don't plan to) X-Powered-By: PHP/4.0b5-dev Content-type: iso-8859-1 <<< where is text/html?
This commit is contained in:
parent
c0b3d86d91
commit
83d20ab305
@ -389,6 +389,7 @@ SAPI_API int sapi_send_headers()
|
||||
sapi_header_struct default_header;
|
||||
int len = SG(sapi_headers).default_content_type_size + sizeof("Content-type: ");
|
||||
|
||||
default_header.header = emalloc(len);
|
||||
strcpy(default_header.header, "Content-type: ");
|
||||
strlcat(default_header.header, SG(sapi_headers).default_content_type, len);
|
||||
default_header.header[len - 1] = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user