Skip to content

Get headers in a 302 response #108

Closed Answered by sralloza
sralloza asked this question in Support
Discussion options

You must be logged in to vote

And once again, a little bit of extra investigation time resolved the issue. The solution is to return http.ErrUseLastResponse in CheckRedirect instead of a custom error.

myClient.CheckRedirect = func(req *http.Request, via []*http.Request) error {
  return http.ErrUseLastResponse
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@earthboundkid
Comment options

Answer selected by sralloza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants