Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix #76204: CONNECT method is partially supported #3220
The built-in Webserver recognizes the CONNECT method, but does not handle it in any way. Since support for HTTP tunneling is out of scope for the built-in Webserver, we unrecognize the verb, which results in an "HTTP/1.1 501 Not Implemented" response.
Is there any way in which the application code could still manually support this?
I think based on previous discussions our consensus was basically that we want to move towards not validating methods at all and let the application decide, and this PR would go in the opposite direction.
It might somehow be possible that a router script supports the CONNECT method, so the built-in webserver could be used as proxy, but I can't see why anybody would use the built-in webserver as proxy in the first place, since that likely would require that the router script has to do all the work except for parsing the request.
OTOH, responding with 501 might still enable the requesting application to deal with it.