diff --git a/pkg/oauth/external/handler.go b/pkg/oauth/external/handler.go index a94f6e63a..841189d63 100644 --- a/pkg/oauth/external/handler.go +++ b/pkg/oauth/external/handler.go @@ -241,7 +241,7 @@ func (h *Handler) handleError(err error, w http.ResponseWriter, req *http.Reques } klog.V(4).Infof("handle error failed for err: %v", err) - http.Error(w, "An error occured", http.StatusInternalServerError) + http.Error(w, "An error occurred", http.StatusInternalServerError) } // defaultState provides default state-building, validation, and parsing to contain CSRF and "then" redirection diff --git a/pkg/osinserver/osinserver.go b/pkg/osinserver/osinserver.go index 6f5add787..bef54ac41 100644 --- a/pkg/osinserver/osinserver.go +++ b/pkg/osinserver/osinserver.go @@ -92,7 +92,7 @@ func (s *osinServer) handleAuthorize(w http.ResponseWriter, r *http.Request) { } if err := osin.OutputJSON(resp, w, r); err != nil { klog.Infof("output JSON through osin: %v", err) - http.Error(w, "an internal error occured", http.StatusInternalServerError) + http.Error(w, "an internal error occurred", http.StatusInternalServerError) } } @@ -112,7 +112,7 @@ func (s *osinServer) handleToken(w http.ResponseWriter, r *http.Request) { } if err := osin.OutputJSON(resp, w, r); err != nil { klog.Infof("output JSON through osin: %v", err) - http.Error(w, "an internal error occured", http.StatusInternalServerError) + http.Error(w, "an internal error occurred", http.StatusInternalServerError) } } @@ -125,6 +125,6 @@ func (s *osinServer) handleInfo(w http.ResponseWriter, r *http.Request) { } if err := osin.OutputJSON(resp, w, r); err != nil { klog.Infof("output JSON through osin: %v", err) - http.Error(w, "an internal error occured", http.StatusInternalServerError) + http.Error(w, "an internal error occurred", http.StatusInternalServerError) } }