Skip to content

Get headers in a 302 response #108

Closed Answered by sralloza
sralloza asked this question in Support
Apr 10, 2024 · 1 comments · 2 replies
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 2 replies

Comment options

You must be logged in to vote
2 replies
@earthboundkid
Comment options

@sralloza
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