views: delete_cookie() does not accept the httplonly argument

This commit is contained in:
Benjamin Dauvergne 2014-04-22 15:05:22 +02:00
parent db8868ce85
commit e14ef39ed8
1 changed files with 1 additions and 2 deletions

View File

@ -39,6 +39,5 @@ def logout(request):
next_url = urlparse.urljoin(settings.STATIC_URL, 'authentic2/images/ok.png')
response = HttpResponseRedirect(next_url)
domain = app_settings.COOKIE_DOMAIN or request.META['HTTP_HOST'].split(':')[0]
response.delete_cookie(app_settings.COOKIE_NAME, domain=domain,
httponly=app_settings.COOKIE_HTTP_ONLY)
response.delete_cookie(app_settings.COOKIE_NAME, domain=domain)
return response