just a runnable instance of lrcd

make even prettier

+5 -4
+5 -4
main.go
··· 22 22 23 23 func guessIfUpgradeFail(server *lrcd.Server) http.HandlerFunc { 24 24 return func(w http.ResponseWriter, r *http.Request) { 25 - if r.Header.Get("Connection") != "upgrade" { 25 + if r.Header.Get("Upgrade") != "websocket" { 26 26 fmt.Fprintf(w, `hi! i am an lrc server 27 - i think you should try connecting to me with an lrc client (e.g. tty!xcvr) 28 - it'll be more fun for us both. 29 - currently connected: %d`, server.Connected()) 27 + i think you should try connecting to me with an lrc client (e.g. tty!xcvr) 28 + it'll be more fun for us both! 29 + 30 + currently connected: %d`, server.Connected()) 30 31 } else { 31 32 server.WSHandler()(w, r) 32 33 }