Fix more stupid NOP body things.
This commit is contained in:
parent
fed6b92227
commit
186b714a65
4
main.go
4
main.go
|
@ -211,6 +211,10 @@ func clientHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
// Fuck you golang, you should never eat write but fail
|
// Fuck you golang, you should never eat write but fail
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
if r.Method != http.MethodGet {
|
||||||
|
w.WriteHeader(405)
|
||||||
|
return
|
||||||
|
}
|
||||||
ch := NewClientChannel(name)
|
ch := NewClientChannel(name)
|
||||||
defer ch.Close()
|
defer ch.Close()
|
||||||
for {
|
for {
|
||||||
|
|
Loading…
Reference in New Issue