Skip to content

Response.clear_all_cookies() is broken #20

Description

@florentx

It accesses self.request which does not exist.

I propose removal of this method: the iteration would be the responsability of the developer.

@get('/logout')
def logout(request):
    response = Response("...")
    for name in request.cookies:
        response.clear_cookie(name)
    return response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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