From 2e719a9456badaea93cda95ccef0f96eaa93b026 Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Sun, 3 Jun 2018 15:42:50 -0600 Subject: Update documentation for SameSite --- src/webob/cookies.py | 4 ++-- src/webob/response.py | 2 +- 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`` -- cgit v1.2.1