itty icon indicating copy to clipboard operation
itty copied to clipboard

Response.clear_all_cookies() is broken

Open florentx opened this issue 12 years ago • 0 comments

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

florentx avatar May 20 '13 13:05 florentx