From cb8637768565ec20b052b6621b12dd5cb8c659eb Mon Sep 17 00:00:00 2001 From: Steve Piercy <web@stevepiercy.com> Date: Thu, 12 Apr 2018 08:28:38 +0200 Subject: [PATCH] Merge pull request #3255 from stevepiercy/1.8-branch --- pyramid/interfaces.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyramid/interfaces.py b/pyramid/interfaces.py index 450cd9c..b865aca 100644 --- a/pyramid/interfaces.py +++ b/pyramid/interfaces.py @@ -180,7 +180,7 @@ """Gets and sets and deletes the Date header. For more information on Date see RFC 2616 section 14.18. Converts using HTTP date.""") - def delete_cookie(key, path='/', domain=None): + def delete_cookie(name, path='/', domain=None): """ Delete a cookie from the client. Note that path and domain must match how the cookie was originally set. This sets the cookie to the empty string, and max_age=0 so that it should expire immediately. """ @@ -244,7 +244,7 @@ """ Gets and sets and deletes the Server header. For more information on Server see RFC216 section 14.38. """) - def set_cookie(key, value='', max_age=None, path='/', domain=None, + def set_cookie(name, value='', max_age=None, path='/', domain=None, secure=False, httponly=False, comment=None, expires=None, overwrite=False): """ Set (add) a cookie for the response """ @@ -259,7 +259,7 @@ """ Get/set the unicode value of the body (using the charset of the Content-Type)""") - def unset_cookie(key, strict=True): + def unset_cookie(name, strict=True): """ Unset a cookie with the given name (remove it from the response).""" -- Gitblit v1.9.3