diff --git a/main.go b/main.go index 3f80852..58eac18 100644 --- a/main.go +++ b/main.go @@ -211,6 +211,10 @@ func clientHandler(w http.ResponseWriter, r *http.Request) { // Fuck you golang, you should never eat write but fail return } + if r.Method != http.MethodGet { + w.WriteHeader(405) + return + } ch := NewClientChannel(name) defer ch.Close() for {