Skip to content

Commit

Permalink
fix: Do not log preflighting as an error
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed Jun 9, 2024
1 parent 8d01c1c commit de96929
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/web/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func WrapHandler(fn LoggedHandlerFunc, methods []string) http.HandlerFunc {
log.Dbg(": preflight")
w.Header().Set("Content-Length", "0")
w.WriteHeader(http.StatusOK)
status = http.StatusOK
} else if slices.Contains(methods, r.Method) {
status = fn(w, r)
} else {
Expand Down

0 comments on commit de96929

Please sign in to comment.