Index: modules/http/http_request.c =================================================================== --- modules/http/http_request.c (revision 1826989) +++ modules/http/http_request.c (working copy) @@ -187,7 +187,8 @@ apr_table_setn(r->headers_out, "Location", custom_response); } else if (custom_response[0] == '/') { - const char *error_notes; + const char *error_notes, *original_method; + int original_method_number; r->no_local_copy = 1; /* Do NOT send HTTP_NOT_MODIFIED for * error documents! */ /* @@ -205,9 +206,13 @@ "error-notes")) != NULL) { apr_table_setn(r->subprocess_env, "ERROR_NOTES", error_notes); } + original_method = r->method; + original_method_number = r->method_number; r->method = "GET"; r->method_number = M_GET; ap_internal_redirect(custom_response, r); + r->method = original_method; + r->method_number = original_method_number; return; } else {