]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
PR64295 cannot override default Virtualhost's mod_reqtimeout
authorJean-Frederic Clere <jfclere@apache.org>
Wed, 15 Apr 2020 08:51:05 +0000 (08:51 +0000)
committerJean-Frederic Clere <jfclere@apache.org>
Wed, 15 Apr 2020 08:51:05 +0000 (08:51 +0000)
of course only body=n can work the headers have to parsed to get the virtualhost.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876540 13f79535-47bb-0310-9956-ffa450edef68

modules/filters/mod_reqtimeout.c

index 68d82d49e43d7ab358b9905dc31f8ae92129222d..0ebd78a38e38069088e509acab3af5e39d469c24 100644 (file)
@@ -436,8 +436,8 @@ static int reqtimeout_before_body(request_rec *r)
         /* not configured for this connection */
         return OK;
     }
-    cfg = ap_get_module_config(r->connection->base_server->module_config,
-                               &reqtimeout_module);
+    cfg = ap_get_module_config(r->server->module_config,
+                              &reqtimeout_module);
     AP_DEBUG_ASSERT(cfg != NULL);
 
     ccfg->type = "body";