ASF Bugzilla – Attachment 37815 Details for
Bug 65225
Return 505 HTTP Version Not Supported if protocol is HTTP and if version is not supported!
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
error 505 fix
error505-65225.diff (text/plain), 797 bytes, created by
Giovanni Bechis
on 2021-04-18 15:04:19 UTC
(
hide
)
Description:
error 505 fix
Filename:
MIME Type:
Creator:
Giovanni Bechis
Created:
2021-04-18 15:04:19 UTC
Size:
797 bytes
patch
obsolete
>Index: server/protocol.c >=================================================================== >--- server/protocol.c (revision 1888902) >+++ server/protocol.c (working copy) >@@ -1060,6 +1060,14 @@ > return 0; > } > >+ if ((r->proto_num != HTTP_VERSION(0, 9)) && (r->proto_num != HTTP_VERSION(1, 0)) && >+ (r->proto_num != HTTP_VERSION(1, 1)) && (r->proto_num != HTTP_VERSION(2, 0))) { >+ ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, APLOGNO() >+ "client sent unsupported HTTP version request: %s", r->uri); >+ r->status = HTTP_VERSION_NOT_SUPPORTED; >+ return 0; >+ } >+ > if ((!r->hostname && (r->proto_num >= HTTP_VERSION(1, 1))) > || ((r->proto_num == HTTP_VERSION(1, 1)) > && !apr_table_get(r->headers_in, "Host"))) {
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 65225
: 37815