summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2018-06-03 15:42:50 -0600
committerBert JW Regeer <bertjw@regeer.org>2018-06-03 15:42:50 -0600
commit2e719a9456badaea93cda95ccef0f96eaa93b026 (patch)
tree8fb8a3a25e46027183c963315b9614e333bc712d
parent8964aaceb0e1f4cbb3eeeba1c067617ad1c7b37b (diff)
downloadwebob-bugfix/nonbytes-samesite.tar.gz
Update documentation for SameSitebugfix/nonbytes-samesite
-rw-r--r--src/webob/cookies.py4
-rw-r--r--src/webob/response.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/webob/cookies.py b/src/webob/cookies.py
index d6736d4..a9f4b8c 100644
--- a/src/webob/cookies.py
+++ b/src/webob/cookies.py
@@ -471,8 +471,8 @@ def make_cookie(name, value, max_age=None, path='/', domain=None,
Set a comment on the cookie. Default: ``None``
``samesite``
- The 'SameSite' attribute of the cookie, can be either ``b"Strict"``,
- ``b"Lax"``, or ``None``.
+ The 'SameSite' attribute of the cookie, can be either ``"Strict"``,
+ ``"Lax"``, or ``None``.
"""
# We are deleting the cookie, override max_age and expires
diff --git a/src/webob/response.py b/src/webob/response.py
index d7d37cc..5bc749c 100644
--- a/src/webob/response.py
+++ b/src/webob/response.py
@@ -1005,7 +1005,7 @@ class Response(object):
A string representing the ``SameSite`` attribute of the cookie or
``None``. If samesite is ``None`` no ``SameSite`` value will be sent
- in the cookie. Should only be ``b"Strict"`` or ``b"Lax"``.
+ in the cookie. Should only be ``"Strict"`` or ``"Lax"``.
``comment``