Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
Choose a Base Repository
Pylons/webob
0xngold/webob
B-Rich/webob
Batterii/webob
Codonaut/webob
Craga89/webob
CreamCoderz/webob
Cykooz/webob
FashtimeDotCom/webob
GordonSchmidt/webob
Ivoz/webob
JelleZijlstra/webob
Mereostr/webob
Natim/webob
PlumpMath/webob
SmartTeleMax/webob
ViktorL/webob
XiaooDai/webob
YuanrongZheng/webob
adamchainz/webob
alenjun/webob
alertedsnake/webob
almet/webob
amol-/webob
amotl/webob
anaer/webob
aodag/webob
bertjwregeer/webob
brotchie/webob
bukzor/webob
caton-wang/webob
cdellin/webob
cdunklau/webob
charlescbeebe/webob
chimobb/webob
chris-morgan/webob
chrismorales/webob
cjford/webob
coltonlw/webob
cwebber/webob
cymoo/webob
dairiki/webob
danielerez/webob
danielholmstrom/webob
deuxpi/webob
devIORA/webob
dirkmueller/webob
dobesv/webob
domenkozar/webob
doulbekill/webob
dstufft/webob
e42s/webob
echlebek/webob
faassen/webob
fortara/webob
google-feinberg/webob
gosom/webob
gotostack/webob
greghaynes/webob
hayate/webob
htang2013/webob
ianb/webob
invisibleroads/webob
inytar/webob
jd/webob
jeremydw/webob
jimbaker/webob
jinty/webob
jmwhitfi/webob
joebos/webob
jonatasoliveira/webob
joulez/webob
jturmel/webob
julienmeyer/webob
k-hasan-19/webob
koansys/webob
kthguru/webob
lakshmi-kannan/webob
lasson/webob
lieryan/webob
lmctv/webob
lrowe/webob
ltvolks/webob
lukecyca/webob
madhawa1206/webob
maisano/webob
martinth/webob
mateuszklimek/webob
melon-li/webob
metalman/webob
meteogrid/webob
michilu/webob
minddistrict/webob
miohtama/webob
mitchellrj/webob
mmerickel/webob
moriyoshi/webob
mpirnat/webob
mrmuxl/webob
msabramo/webob
mtawaken/webob
mvidner/webob
narendasan/webob
nickstenning/webob
nirs/webob
nkunal/webob
nphilipp/webob
oas89/webob
openprocurement/webob
panpan-zhang/webob
perey/webob
proppy/webob
pubkraal/webob
py-web/webob
qq40660/webob
quantum-omega/webob
rclmenezes/webob
rjungbeck/webob
rogerioyuuki/webob
ryanpetrello/webob
ryd994/webob
rylz/webob
saschpe/webob
shashankchakelam/webob
sigmavirus24/webob
sileht/webob
simudream/webob
slyang-git/webob
smal/webob
sontek/webob
squirro/webob
stevepiercy/webob
sunyi00/webob
suryakencana007/webob
tailgunnerbeavis/webob
tbkraf08/webob
tc1989tc/webob
techigin/webob
thaisvergani/webob
thefuture2092/webob
toanant/webob
tshepang/webob
wdvill/webob
wenxueliu/webob
whiteroses/webob
witsch/webob
xpahos/webob
xuweiwei2011/webob
yoniLavi/webob
young001/webob
yws/webob
zuiwanting/webob-Pylons
Nothing to show
Choose a Head Repository
Pylons/webob
0xngold/webob
B-Rich/webob
Batterii/webob
Codonaut/webob
Craga89/webob
CreamCoderz/webob
Cykooz/webob
FashtimeDotCom/webob
GordonSchmidt/webob
Ivoz/webob
JelleZijlstra/webob
Mereostr/webob
Natim/webob
PlumpMath/webob
SmartTeleMax/webob
ViktorL/webob
XiaooDai/webob
YuanrongZheng/webob
adamchainz/webob
alenjun/webob
alertedsnake/webob
almet/webob
amol-/webob
amotl/webob
anaer/webob
aodag/webob
bertjwregeer/webob
brotchie/webob
bukzor/webob
caton-wang/webob
cdellin/webob
cdunklau/webob
charlescbeebe/webob
chimobb/webob
chris-morgan/webob
chrismorales/webob
cjford/webob
coltonlw/webob
cwebber/webob
cymoo/webob
dairiki/webob
danielerez/webob
danielholmstrom/webob
deuxpi/webob
devIORA/webob
dirkmueller/webob
dobesv/webob
domenkozar/webob
doulbekill/webob
dstufft/webob
e42s/webob
echlebek/webob
faassen/webob
fortara/webob
google-feinberg/webob
gosom/webob
gotostack/webob
greghaynes/webob
hayate/webob
htang2013/webob
ianb/webob
invisibleroads/webob
inytar/webob
jd/webob
jeremydw/webob
jimbaker/webob
jinty/webob
jmwhitfi/webob
joebos/webob
jonatasoliveira/webob
joulez/webob
jturmel/webob
julienmeyer/webob
k-hasan-19/webob
koansys/webob
kthguru/webob
lakshmi-kannan/webob
lasson/webob
lieryan/webob
lmctv/webob
lrowe/webob
ltvolks/webob
lukecyca/webob
madhawa1206/webob
maisano/webob
martinth/webob
mateuszklimek/webob
melon-li/webob
metalman/webob
meteogrid/webob
michilu/webob
minddistrict/webob
miohtama/webob
mitchellrj/webob
mmerickel/webob
moriyoshi/webob
mpirnat/webob
mrmuxl/webob
msabramo/webob
mtawaken/webob
mvidner/webob
narendasan/webob
nickstenning/webob
nirs/webob
nkunal/webob
nphilipp/webob
oas89/webob
openprocurement/webob
panpan-zhang/webob
perey/webob
proppy/webob
pubkraal/webob
py-web/webob
qq40660/webob
quantum-omega/webob
rclmenezes/webob
rjungbeck/webob
rogerioyuuki/webob
ryanpetrello/webob
ryd994/webob
rylz/webob
saschpe/webob
shashankchakelam/webob
sigmavirus24/webob
sileht/webob
simudream/webob
slyang-git/webob
smal/webob
sontek/webob
squirro/webob
stevepiercy/webob
sunyi00/webob
suryakencana007/webob
tailgunnerbeavis/webob
tbkraf08/webob
tc1989tc/webob
techigin/webob
thaisvergani/webob
thefuture2092/webob
toanant/webob
tshepang/webob
wdvill/webob
wenxueliu/webob
whiteroses/webob
witsch/webob
xpahos/webob
xuweiwei2011/webob
yoniLavi/webob
young001/webob
yws/webob
zuiwanting/webob-Pylons
Nothing to show
  • 2 commits
  • 5 files changed
  • 0 commit comments
  • 1 contributor
Commits on Jun 06, 2018
Showing with 36 additions and 6 deletions.
  1. +13 −0 CHANGES.txt
  2. +1 −1 setup.py
  3. +5 −3 src/webob/cookies.py
  4. +1 −1 src/webob/response.py
  5. +16 −1 tests/test_cookies.py
View
@@ -1,3 +1,16 @@
1.8.2 (2018-06-05)
------------------
Bugfix
~~~~~~
- SameSite may now be passed as str or bytes to `Response.set_cookie` and
`cookies.make_cookie`. This was an oversight as all other arguments would be
correctly coerced before being serialized. See
https://github.com/Pylons/webob/issues/361 and
https://github.com/Pylons/webob/pull/362
1.8.1 (2018-04-10)
------------------
View
@@ -25,7 +25,7 @@
setup(
name='WebOb',
version='1.8.1',
version='1.8.2',
description="WSGI request and response object",
long_description=README + '\n\n' + CHANGES,
classifiers=[
View
@@ -239,8 +239,10 @@ def serialize_cookie_date(v):
def serialize_samesite(v):
v = bytes_(v)
if v.lower() not in (b"strict", b"lax"):
raise ValueError("SameSite must be b'Strict' or b'Lax'")
raise ValueError("SameSite must be 'Strict' or 'Lax'")
return v
@@ -469,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``
View
@@ -450,6 +450,13 @@ def test_make_cookie_path(self):
assert 'test_cookie=value' in cookie
assert 'Path=/foo/bar/baz' in cookie
@pytest.mark.parametrize("samesite", ["Strict", "Lax"])
def test_make_cookie_samesite(self, samesite):
cookie = self.makeOne('test_cookie', 'value', samesite=samesite)
assert 'test_cookie=value' in cookie
assert 'SameSite=' + samesite in cookie
class CommonCookieProfile(object):
def makeDummyRequest(self, **kw):
class Dummy(object):
@@ -661,12 +668,20 @@ def test_flag_http_only(self):
assert '; HttpOnly' in cookie[1]
@pytest.mark.parametrize("samesite", [b"Strict", b"Lax"])
def test_with_samesite_bytes(self, samesite):
cookie = self.makeOne(samesite=samesite)
ret = cookie.get_headers("test")
for cookie in ret:
assert "; SameSite=" + samesite.decode('ascii') in cookie[1]
@pytest.mark.parametrize("samesite", ["Strict", "Lax"])
def test_with_samesite(self, samesite):
cookie = self.makeOne(samesite=samesite)
ret = cookie.get_headers("test")
for cookie in ret:
assert "; SameSite=" + samesite.decode("ascii") in cookie[1]
assert "; SameSite=" + samesite in cookie[1]
def test_cookie_length(self):
cookie = self.makeOne()

No commit comments for this range