Skip to content

Commit

Permalink
Add error parsing auth message
Browse files Browse the repository at this point in the history
  • Loading branch information
triole committed Apr 1, 2022
1 parent 3bb81ce commit 42db46a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (h *handler) ServeHTTP(resp http.ResponseWriter, req *http.Request) {
if len(CLI.BasicAuth) > 0 {
user, pass, ok := req.BasicAuth()
if !ok {
fmt.Println("Error parsing basic auth")
lg.LogError("Error parsing sent basic auth", logrus.Fields{})
resp.WriteHeader(401)
return
}
Expand Down

0 comments on commit 42db46a

Please sign in to comment.