From f478c346712d730df0cbe410b632bd120b0589aa Mon Sep 17 00:00:00 2001 From: "David Kemp (Work)" Date: Thu, 26 Jan 2012 18:45:38 +0000 Subject: [PATCH] add failing test for unicode headers (python 2.x only) --- test_requests.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test_requests.py b/test_requests.py index c3f3deb..eda9f79 100644 --- a/test_requests.py +++ b/test_requests.py @@ -111,6 +111,11 @@ class RequestsTestSuite(TestSetup, unittest.TestCase): r = get(httpbin('get') + '?test=true', params={'q': 'test'}, headers=heads) self.assertEqual(r.status_code, 200) + def test_session_with_unicode_headers(self): + heads = { u'User-Agent': u'\u30cd\u30c3\u30c8\u30ef\u30fc\u30af' } + + requests.get(url=httpbin('get'), headers=heads) + def test_user_agent_transfers(self): """Issue XX""" -- 2.34.1