Fix more stupid NOP body things.
This commit is contained in:
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 {
|
||||||
|
Reference in New Issue
Block a user