Permalink
Browse files

Update documentation for SameSite

  • Loading branch information...
bertjwregeer committed Jun 3, 2018
1 parent 8964aac commit 2e719a9456badaea93cda95ccef0f96eaa93b026
Showing with 3 additions and 3 deletions.
  1. +2 −2 src/webob/cookies.py
  2. +1 −1 src/webob/response.py
View
@@ -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
View
@@ -1005,7 +1005,7 @@ def set_cookie(self, name, value='', max_age=None,
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``

0 comments on commit 2e719a9

Please sign in to comment.