Skip to content

managerModifyRequest is executed twice for every request #350

@nikomi

Description

@nikomi

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions