ASF Bugzilla – Attachment 35777 Details for
Bug 62186
ErrorDocument causes POST request getting logged as GET request
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Preserve request method for non-GET requests with ErrorDocument
preserve_request_method_for_errordocs.patch (text/plain), 1.18 KB, created by
Micha Lenk
on 2018-03-16 15:20:28 UTC
(
hide
)
Description:
Preserve request method for non-GET requests with ErrorDocument
Filename:
MIME Type:
Creator:
Micha Lenk
Created:
2018-03-16 15:20:28 UTC
Size:
1.18 KB
patch
obsolete
>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 {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 62186
: 35777 |
35778