Skip to content

Commit

Permalink
Missing return on path-parsing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
hsanjuan committed Oct 12, 2023
1 parent 70d5202 commit ca14733
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ func newKuboRPCHandler(endpoints []string) http.Handler {
if err != nil {
w.WriteHeader(http.StatusBadRequest)
w.Write([]byte(err.Error()))
return
}
codec := r.URL.Query().Get("output-codec")
if codec == "" {
Expand Down

0 comments on commit ca14733

Please sign in to comment.