Skip to content

aiohttp.CookieJar.filter_cookies does not accept string parameter #1636

Closed
@melkamar

Description

Long story short

Documentation states that it should be possible to filter cookies using URL as a plain string. However, that raises an exception:

filtered = session.cookie_jar.filter_cookies('http://httpbin.org')

Expected behaviour

It should be possible to filter cookies by plain string.

Actual behaviour

Using plain string causes an exception.

Steps to reproduce

Follow example in documentation.

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