From: Moriyoshi Koizumi Date: Wed, 7 May 2003 14:12:57 +0000 (+0000) Subject: MFH(r-1.16): possible fix for bug #23455 (patch by rrichards@digarc.com) X-Git-Tag: php-4.3.2RC3~65 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96d9074817615f3382e50f80a957248e20d27a70;p=php MFH(r-1.16): possible fix for bug #23455 (patch by rrichards@digarc.com) --- diff --git a/sapi/apache2handler/sapi_apache2.c b/sapi/apache2handler/sapi_apache2.c index a9ae55efb4..eef5669b1d 100644 --- a/sapi/apache2handler/sapi_apache2.c +++ b/sapi/apache2handler/sapi_apache2.c @@ -414,7 +414,7 @@ static void php_apache_request_ctor(request_rec *r, php_struct *ctx TSRMLS_DC) r->no_local_copy = 1; content_type = sapi_get_default_content_type(TSRMLS_C); - ap_set_content_type(r, apr_pstrdup(r->pool, sapi_get_default_content_type(TSRMLS_C))); + ap_set_content_type(r, apr_pstrdup(r->pool, content_type)); efree(content_type); apr_table_unset(r->headers_out, "Content-Length");