Like many other web servers, it would be nice for Apache sends 505 HTTP Version Not Supported when the protocol is HTTP and the version is not supported. Right now, it only sends 400 Bad Request. But it would be perfect to send 505 HTTP Version Not Supported for the appropriate situations.
Created attachment 37815 [details] error 505 fix This diff fixes the issue, I wonder if there is a better method to check for http protocol version.
(In reply to Giovanni Bechis from comment #1) > Created attachment 37815 [details] > error 505 fix > > This diff fixes the issue, I wonder if there is a better method to check for > http protocol version. I don't like the patch because there could be 3rd party modules implementing later versions of HTTP. Please see also https://lists.apache.org/thread.html/ra41dbcfc579d04887cc0644fc6803f0ae0f154291c058f52aee1c4df%40%3Cdev.httpd.apache.org%3E and the whole thread: https://lists.apache.org/thread.html/red499ac4750b88e5943c25abb86434c59dfff4d4f386ffc53742755d%40%3Cdev.httpd.apache.org%3E
Maybe a variable that says if the protocol is supported or not? So, if a module would be created for > http2, it can mention if protocol is supported or not. like r->protocol_supported or something of that kind. That could also be that the associated modules with the protocols would set this variable. Or just check if the protocol is HTTP, and the version is > 0.9, and send the status there.