Skip to content

DummyResponse.replace is broken #99

@kmike

Description

@kmike

Currently DummyResponse only accepts url and request arguments. But the replace method (inherited from Response) passes all the attributes to __init__, which causes an exception.

I think we should support response.replace, because some middlewares might want to call it, and they expect it to work.

Most likely, a fix is a matter of removing DummyResponse.__init__ method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions