diff options
author | Graham Dumpleton <Graham.Dumpleton@gmail.com> | 2022-10-05 16:59:53 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 16:59:53 +1100 |
commit | 4753f14685e8aaa74a42308d4cbe3fa058d8969f (patch) | |
tree | 727cddca35646b1fd2b061ee794db4bae9ad80db | |
parent | ac1a8e6cfffda292f688de1a6628835887be6e63 (diff) | |
parent | 15721162025ea35f3e7619113a772aa3d95e9f33 (diff) | |
download | mod_wsgi-4753f14685e8aaa74a42308d4cbe3fa058d8969f.tar.gz |
Merge pull request #791 from bdc34/apache2.2-compile-part-2
Fix ability to build with Apache 2.2.
-rw-r--r-- | src/server/mod_wsgi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/server/mod_wsgi.c b/src/server/mod_wsgi.c index 3f5d855..967ac19 100644 --- a/src/server/mod_wsgi.c +++ b/src/server/mod_wsgi.c @@ -12916,11 +12916,20 @@ static int wsgi_hook_daemon_handler(conn_rec *c) * is okay as the request limit body is checked in the Apache * child process before request is proxied specifically to avoid * unecessarily passing the content across to the daemon process. + * Note also that the reason that the change is applied for all + * Apache 2.4.X versions is because a module compiled against an + * Apache version before the change, can still be used with newer + * Apache version without being re-compiled which would result in + * a crash also. We can't enable for older Apache 2.X versions as + * ap_get_core_module_config() doesn't exist. */ +#if (AP_SERVER_MAJORVERSION_NUMBER == 2 && \ + AP_SERVER_MINORVERSION_NUMBER >= 4) d = (core_dir_config *)ap_get_core_module_config(r->per_dir_config); d->limit_req_body = 0; +#endif r->sent_bodyct = 0; |