mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
add failing test for unicode headers (python 2.x only)
This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user