Skip to content

Commit

Permalink
Add a return statement after a 400 is returned.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed May 18, 2022
1 parent 3b7d334 commit 9e6d7cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ func (sh *ServerHandler) ServeHTTP(response http.ResponseWriter, request *http.R
response.WriteHeader(http.StatusBadRequest)
response.Write([]byte("Strings must be UTF-8.\n"))
debugLog.Log(messageKey, "Strings must be UTF-8.")
return
}

sh.caduceusHandler.HandleRequest(0, sh.fixWrp(msg))
Expand Down

0 comments on commit 9e6d7cd

Please sign in to comment.