Skip to content

Commit

Permalink
Update pkg/ffresty/ffresty.go
Browse files Browse the repository at this point in the history
Co-authored-by: Enrique Lacal <[email protected]>
Signed-off-by: hayden <[email protected]>
  • Loading branch information
onelapahead and EnriqueL8 authored Jan 16, 2025
1 parent dde1302 commit 63e3df7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ffresty/ffresty.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ func NewWithConfig(ctx context.Context, ffrestyConfig Config) (client *resty.Cli
}
// The req.URL might have only set a path i.e. /home, fallbacking to the base URL of the client.
// So if the URL is nil, that's likely the case and we'll derive the host from the configured
// based instead.
// base instead.
if (u == nil || u.Host == "") && _url != "" {
u, _ = url.Parse(_url)
}
Expand Down

0 comments on commit 63e3df7

Please sign in to comment.