mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
+1
-1
@@ -187,7 +187,7 @@ class Request(object):
|
||||
if is_error:
|
||||
response.error = resp
|
||||
|
||||
response.url = self.full_url
|
||||
response.url = self.full_url.decode('utf-8')
|
||||
|
||||
return response
|
||||
|
||||
|
||||
@@ -294,6 +294,16 @@ class RequestsTestSuite(unittest.TestCase):
|
||||
r = requests.get(httpbin('gzip'))
|
||||
r.content.decode('ascii')
|
||||
|
||||
def test_response_has_unicode_url(self):
|
||||
|
||||
for service in SERVICES:
|
||||
|
||||
url = service('get')
|
||||
|
||||
response = requests.get(url)
|
||||
|
||||
self.assertIsInstance(response.url, unicode)
|
||||
|
||||
|
||||
def test_unicode_get(self):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user