Skip to content

Commit c13f748

Browse files
committed
Better handle of conflicted module in apache
1 parent 29197c2 commit c13f748

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/mod_redirectionio.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ static void redirectionio_register_hooks(apr_pool_t *p) {
6161
ap_hook_type_checker(redirectionio_match_handler, NULL, NULL, APR_HOOK_FIRST);
6262
ap_hook_fixups(redirectionio_match_handler, NULL, NULL, APR_HOOK_FIRST);
6363

64-
ap_hook_handler(redirectionio_redirect_handler, NULL, NULL, APR_HOOK_FIRST);
64+
ap_hook_handler(redirectionio_redirect_handler, NULL, NULL, APR_HOOK_REALLY_FIRST);
6565
ap_hook_log_transaction(redirectionio_log_handler, NULL, NULL, APR_HOOK_MIDDLE);
6666

6767
ap_hook_insert_filter(ap_headers_insert_output_filter, NULL, NULL, APR_HOOK_LAST);
@@ -194,6 +194,11 @@ static int redirectionio_redirect_handler_for_status_code(request_rec *r, uint16
194194

195195
r->status = new_status_code;
196196

197+
if (status_code == 0) {
198+
r->handler = "redirectionio";
199+
r->filename = "redirectionio";
200+
}
201+
197202
return r->status;
198203
}
199204

0 commit comments

Comments
 (0)