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
net/http: HTTP/2 server cannot accept HTTP requests #19755
Consider the following server:
Requests to the server via HTTP is broken and the server logs the following error message:
Not a bug. Working as intended.
You're expecting the same port to conditionally do either TLS+http2 vs plaintext http1 depending on what the client sends first?
Typically HTTP is on port 80 and HTTP/2 is on 443 (standard TLS port).
Does any other server mux on the client's first few bytes, distinguishing between an HTTP/1 verb vs. a TLS ClientHello record? (or whatever it starts with)