itty
itty copied to clipboard
Response.clear_all_cookies() is broken
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