Skip to content

Commit

Permalink
fix url query of selfTransports
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpalide committed Jan 13, 2025
1 parent be1dad7 commit 440fb36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/transport-discovery/api/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ func (api *API) getTransportByEdge(w http.ResponseWriter, r *http.Request) {
}

func (api *API) getAllTransports(w http.ResponseWriter, r *http.Request) {
selfTransportsParam := chi.URLParam(r, "selfTransports")
selfTransports := true
query := r.URL.Query()
selfTransportsParam := query.Get("selfTransports")
if selfTransportsParam == "hide" {
selfTransports = false
}
Expand Down

0 comments on commit 440fb36

Please sign in to comment.