mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
Unicode support.
This commit is contained in:
parent
b80cb7bd2f
commit
264cec8be6
97 changed files with 6227 additions and 961 deletions
|
@ -616,16 +616,12 @@ static char *php_apache_get_default_mimetype(request_rec *r TSRMLS_DC)
|
|||
{
|
||||
|
||||
char *mimetype;
|
||||
if (SG(default_mimetype) || SG(default_charset)) {
|
||||
/* Assume output will be of the default MIME type. Individual
|
||||
scripts may change this later. */
|
||||
char *tmpmimetype;
|
||||
tmpmimetype = sapi_get_default_content_type(TSRMLS_C);
|
||||
mimetype = pstrdup(r->pool, tmpmimetype);
|
||||
efree(tmpmimetype);
|
||||
} else {
|
||||
mimetype = SAPI_DEFAULT_MIMETYPE "; charset=" SAPI_DEFAULT_CHARSET;
|
||||
}
|
||||
/* Assume output will be of the default MIME type. Individual
|
||||
scripts may change this later. */
|
||||
char *tmpmimetype;
|
||||
tmpmimetype = sapi_get_default_content_type(TSRMLS_C);
|
||||
mimetype = pstrdup(r->pool, tmpmimetype);
|
||||
efree(tmpmimetype);
|
||||
return mimetype;
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue