f6105e
diff --git a/src/server/mod_wsgi.c b/src/server/mod_wsgi.c
f6105e
index 59aad90..ef5f5af 100644
f6105e
--- a/src/server/mod_wsgi.c
f6105e
+++ b/src/server/mod_wsgi.c
f6105e
@@ -12586,6 +12586,9 @@ static apr_status_t wsgi_header_filter(ap_filter_t *f, apr_bucket_brigade *b)
f6105e
 
f6105e
     /* Output status line. */
f6105e
 
f6105e
+    if (!r->status_line)
f6105e
+        r->status_line = ap_get_status_line(r->status);
f6105e
+
f6105e
     vec1[0].iov_base = (void *)"Status:";
f6105e
     vec1[0].iov_len  = strlen("Status:");
f6105e
     vec1[1].iov_base = (void *)" ";
f6105e
@@ -12699,6 +12702,7 @@ static int wsgi_hook_daemon_handler(conn_rec *c)
f6105e
     apr_bucket_brigade *bb;
f6105e
 
f6105e
     core_request_config *req_cfg;
f6105e
+    core_dir_config *d;
f6105e
 
f6105e
     ap_filter_t *current = NULL;
f6105e
     ap_filter_t *next = NULL;
f6105e
@@ -12890,6 +12894,23 @@ static int wsgi_hook_daemon_handler(conn_rec *c)
f6105e
 
f6105e
     r->per_dir_config  = r->server->lookup_defaults;
f6105e
 
f6105e
+    /*
f6105e
+     * Try and ensure that request body limit in daemon mode process
f6105e
+     * is unlimited as Apache 2.4.54 changed rules for limit and if
f6105e
+     * unset is now overridden by HTTP filters to be 1GiB rather than
f6105e
+     * unlimited. This is required since we populate configuration
f6105e
+     * from the base server config only so setting unlimited in a more
f6105e
+     * specific context such as a virtual host wouldn't be visible.
f6105e
+     * Note that setting this to unlimited in the daemon mode process
f6105e
+     * is okay as the request limit body is checked in the Apache
f6105e
+     * child process before request is proxied specifically to avoid
f6105e
+     * unecessarily passing the content across to the daemon process.
f6105e
+     */
f6105e
+
f6105e
+    d = (core_dir_config *)ap_get_core_module_config(r->per_dir_config);
f6105e
+
f6105e
+    d->limit_req_body = 0;
f6105e
+
f6105e
     r->sent_bodyct = 0;
f6105e
 
f6105e
     r->read_length = 0;