Skip to content

Commit

Permalink
Remove the extra "filter" parameter
Browse files Browse the repository at this point in the history
Remove the extra "filter" parameter.   The url that we need to tweak is url encoded.
  • Loading branch information
dehort authored Jan 22, 2024
1 parent 4cd96e1 commit a2e0916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/connectors/sources/impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func NewSourcesClientWithHttpRequestDoer(cfg *viper.Viper, doer HttpRequestDoer)
}

originalUrl := req.URL.String()
if strings.Contains(originalUrl, "filter=filter[") {
if strings.Contains(originalUrl, "filter=filter%5B") {
// Remove the extra filter parameter name
correctedUrl := strings.Replace(req.URL.String(), "filter=", "", -1)

Expand Down

0 comments on commit a2e0916

Please sign in to comment.