]> granicus.if.org Git - apache/commitdiff
Fix a segfault. Only try to set this if the sub_Request has a c-t.
authorRyan Bloom <rbb@apache.org>
Fri, 5 Apr 2002 21:24:13 +0000 (21:24 +0000)
committerRyan Bloom <rbb@apache.org>
Fri, 5 Apr 2002 21:24:13 +0000 (21:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94471 13f79535-47bb-0310-9956-ffa450edef68

modules/http/http_request.c

index 88e1434511143860536a1cbaf909c1ea05b46037..ae52cd95d79a5ea61f5a928e5997955edf0fdb1f 100644 (file)
@@ -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;