Skip to content

Commit

Permalink
fix redirect bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bubbajoe committed May 12, 2024
1 parent 3d32574 commit ebd7665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dgclient/dgclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func WithFollowRedirect(follow bool) Options {
if d, ok := dc.(*dgateClient); ok {
d.client.CheckRedirect = func(req *http.Request, via []*http.Request) error {
if follow {
d.client.CheckRedirect = nil
return nil
}
return http.ErrUseLastResponse
}
Expand Down

0 comments on commit ebd7665

Please sign in to comment.