Skip to content

Commit

Permalink
Enable redirect
Browse files Browse the repository at this point in the history
Signed-off-by: Elis Lulja <[email protected]>
  • Loading branch information
asimpleidea committed Feb 3, 2021
1 parent 007046d commit 4b36850
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions page_poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ func New(p *Page) (Poller, error) {
return http.ErrUseLastResponse
},
}
if p.FollowRedirect {
httpClient.CheckRedirect = nil
}

request, err := http.NewRequestWithContext(context.Background(), method, parsedURL.String(), nil)
if err != nil {
Expand Down

0 comments on commit 4b36850

Please sign in to comment.