···22222323func guessIfUpgradeFail(server *lrcd.Server) http.HandlerFunc {
2424 return func(w http.ResponseWriter, r *http.Request) {
2525- if r.Header.Get("Connection") != "upgrade" {
2525+ if r.Header.Get("Upgrade") != "websocket" {
2626 fmt.Fprintf(w, `hi! i am an lrc server
2727- i think you should try connecting to me with an lrc client (e.g. tty!xcvr)
2828- it'll be more fun for us both.
2929- currently connected: %d`, server.Connected())
2727+i think you should try connecting to me with an lrc client (e.g. tty!xcvr)
2828+it'll be more fun for us both!
2929+3030+currently connected: %d`, server.Connected())
3031 } else {
3132 server.WSHandler()(w, r)
3233 }