From c3d4e4787ad771786f128c1cc54900c884469a86 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Fri, 5 Apr 2002 21:24:13 +0000 Subject: [PATCH] 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 --- modules/http/http_request.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.40.0