We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 06f13e9 commit 0a2d6adCopy full SHA for 0a2d6ad
1 file changed
src/mod_redirectionio.c
@@ -85,8 +85,14 @@ static int redirectionio_match_handler(request_rec *r) {
85
return DECLINED;
86
}
87
88
- // Do not match against internal redirect
+ // reuse context from prev requests in case of internal redirects, to keep the same redirectionio request and response
89
if (r->prev) {
90
+ redirectionio_context *ctx = ap_get_module_config(r->prev->request_config, &redirectionio_module);
91
+
92
+ if (ctx != NULL) {
93
+ ap_set_module_config(r->request_config, &redirectionio_module, ctx);
94
+ }
95
96
97
98
0 commit comments