ASF Bugzilla – Attachment 29210 Details for
Bug 53686
Status "501 Not Implemented" sent very late
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Return 501 for invalid methods as soon as the headers have been read
http_501_shortcut.patch (text/plain), 731 bytes, created by
Carsten Gaebler
on 2012-08-10 15:23:59 UTC
(
hide
)
Description:
Return 501 for invalid methods as soon as the headers have been read
Filename:
MIME Type:
Creator:
Carsten Gaebler
Created:
2012-08-10 15:23:59 UTC
Size:
731 bytes
patch
obsolete
>Index: server/protocol.c >=================================================================== >--- server/protocol.c (revision 1371701) >+++ server/protocol.c (working copy) >@@ -634,7 +634,13 @@ > /* Provide quick information about the request method as soon as known */ > > r->method_number = ap_method_number_of(r->method); >- if (r->method_number == M_GET && r->method[0] == 'H') { >+ >+ if (r->method_number == M_INVALID) { >+ r->status = HTTP_NOT_IMPLEMENTED; >+ ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r, >+ "Invalid method in request %s", r->the_request); >+ } >+ else if (r->method_number == M_GET && r->method[0] == 'H') { > r->header_only = 1; > } >
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 53686
: 29210