Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add redirect loop that keeps track of intermediary requests and responses #79

wants to merge 3 commits into from
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

Fix redirect loop

  • Loading branch information
DanielG committed Oct 9, 2014
commit 9f57e157fdda7cb8c78e7826ca27cf6c9ca2ed06
@@ -173,7 +173,7 @@ defaultRedirectHandler manager req = do
let mNextReq = redirReq req res
case mNextReq of
Nothing -> return $ Right res
Just nextReq -> Left . (,req) <$> defaultMapRes res
Just nextReq -> Left . (,nextReq) <$> defaultMapRes res

redirReq req (Response status _ headers _ jar _ ) =
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.