From: Ryan Bloom Date: Fri, 5 Apr 2002 21:24:13 +0000 (+0000) Subject: Fix a segfault. Only try to set this if the sub_Request has a c-t. X-Git-Tag: 2.0.35~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c3d4e4787ad771786f128c1cc54900c884469a86;p=apache Fix a segfault. Only try to set this if the sub_Request has a c-t. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94471 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_request.c b/modules/http/http_request.c index 88e1434511..ae52cd95d7 100644 --- a/modules/http/http_request.c +++ b/modules/http/http_request.c @@ -422,7 +422,9 @@ AP_DECLARE(void) ap_internal_fast_redirect(request_rec *rr, request_rec *r) r->args = rr->args; r->finfo = rr->finfo; r->handler = rr->handler; - ap_set_content_type(r, rr->content_type); + if (rr->content_type) { + ap_set_content_type(r, rr->content_type); + } r->content_encoding = rr->content_encoding; r->content_languages = rr->content_languages; r->per_dir_config = rr->per_dir_config;