Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response.clear_all_cookies() is broken #20

Open
florentx opened this issue May 20, 2013 · 0 comments
Open

Response.clear_all_cookies() is broken #20

florentx opened this issue May 20, 2013 · 0 comments

Comments

@florentx
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant