Fix more stupid NOP body things.

This commit is contained in:
Yifu Yu 2024-08-09 19:41:59 +08:00
parent fed6b92227
commit 186b714a65
1 changed files with 4 additions and 0 deletions

View File

@ -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 {