Skip to content

Commit

Permalink
do not response any body
Browse files Browse the repository at this point in the history
  • Loading branch information
rkonfj committed Apr 28, 2023
1 parent 6f30c6c commit 9a3b793
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ func (s TohServer) upgradeWebSocket(w http.ResponseWriter, r *http.Request) {

if !s.acl.Check(apiKey) {
w.WriteHeader(http.StatusUnauthorized)
w.Write([]byte("401 Unauthorized"))
logrus.Infof("%s -> %s://%s auth failed", clientIP, network, addr)
return
}
Expand Down

0 comments on commit 9a3b793

Please sign in to comment.