Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/oauth/external/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions pkg/osinserver/osinserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Comment thread
coderabbitai[bot] marked this conversation as resolved.
}
}

Expand All @@ -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)
}
}

Expand All @@ -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)
}
}