diff options
author | ianb <devnull@localhost> | 2008-03-26 02:24:48 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2008-03-26 02:24:48 +0000 |
commit | fe678eb753629f27048e6fd8986e5db010fc5a7c (patch) | |
tree | e9fc61fd8ae0acdd6325e8fca974e9077a1d8e29 /paste/fixture.py | |
parent | a210e9adaeef670c1d9f689316d9559cd13fa910 (diff) | |
download | paste-fe678eb753629f27048e6fd8986e5db010fc5a7c.tar.gz |
Requests can send more than one cookie (#238)
Diffstat (limited to 'paste/fixture.py')
-rw-r--r-- | paste/fixture.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/paste/fixture.py b/paste/fixture.py index 33c70b9..8c569f7 100644 --- a/paste/fixture.py +++ b/paste/fixture.py @@ -372,7 +372,8 @@ class TestApp(object): c = BaseCookie() for name, value in self.cookies.items(): c[name] = value - req.environ['HTTP_COOKIE'] = str(c).split(': ', 1)[1] + hc = '; '.join(['='.join([m.key, m.value]) for m in c.values()]) + req.environ['HTTP_COOKIE'] = hc req.environ['paste.testing'] = True req.environ['paste.testing_variables'] = {} app = lint.middleware(self.app) |