diff --git a/main.go b/main.go index ce3c97d..962c751 100644 --- a/main.go +++ b/main.go @@ -22,11 +22,12 @@ func main() { func guessIfUpgradeFail(server *lrcd.Server) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { - if r.Header.Get("Connection") != "upgrade" { + if r.Header.Get("Upgrade") != "websocket" { fmt.Fprintf(w, `hi! i am an lrc server - i think you should try connecting to me with an lrc client (e.g. tty!xcvr) - it'll be more fun for us both. - currently connected: %d`, server.Connected()) +i think you should try connecting to me with an lrc client (e.g. tty!xcvr) +it'll be more fun for us both! + +currently connected: %d`, server.Connected()) } else { server.WSHandler()(w, r) }