From e958511df085ace98cfcc45c69129553ba07ee9e Mon Sep 17 00:00:00 2001 From: Miikka Koskinen Date: Sat, 9 Mar 2013 09:16:33 +0200 Subject: [PATCH] Add failing test case for #1228 --- test_requests.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test_requests.py b/test_requests.py index 31d9fbf9..64003cfc 100644 --- a/test_requests.py +++ b/test_requests.py @@ -118,6 +118,12 @@ class RequestsTestCase(unittest.TestCase): r = s.get(url) self.assertTrue(s.cookies['foo'] == 'bar') + def test_cookie_sent_on_redirect(self): + s = requests.session() + s.get(httpbin('cookies/set?foo=bar')) + r = s.get(httpbin('redirect/1')) # redirects to httpbin('get') + self.assertTrue("Cookie" in r.json()["headers"]) + def test_user_agent_transfers(self): heads = {