-
Notifications
You must be signed in to change notification settings - Fork 193
Closed
Description
In responseOpen
I think managerModifyRequest
is executed twice for every request.
This is the beginning of responseOpen
:
(manager, req0) <- getModifiedRequestManager manager' inputReq
...
A bit later the redirection loop is entered where the request is modified again:
count
(\req -> do
(manager, modReq) <- getModifiedRequestManager manager0 req
...
This leads to strange effects in our library because modifications are chained - each modification adds a response checker so responses are checked twice, with unpleasant side effects.
If possible (and not required) could you please refactor the code so that each request is only modified once, e.g. by moving the modification code in go
after the actual call, so it modifies a redirect request before looping back to execute it?
Metadata
Metadata
Assignees
Labels
No labels