Closed tony19 closed 8 years ago
Yes, I have not quite figured out what to do abut that. The reason this is happening is that the browser tries to connect with TLS on a non-TLS port. I don’t want to add support for unencrypted http/1.1 because this is not a production server anyways and it should be obvious right away if you are not successfully using h2. A custom error page would be a good idea, but I don’t think I can serve both HTTP and HTTP/2 on the same port. I’ll investigate.
Server log shows full URL That is a good remark. Will add.
Description
After starting
simplehttp2server
, the console showsListening on :5000...
. If we forget that it's serving over https and try to accesshttp://localhost:5000
, a binary file gets downloaded.Steps to Reproduce
simplehttp2server
.http://localhost:5000
(instead of https).Expected Results
Listening on https://localhost:5000
)Actual Results
Environment
go version go1.6.2 darwin/amd64
zsh