8000 Decode HTTP response · Web5design/twilio-python@eaf6e59 · GitHub
[go: up one dir, main page]

Skip to content

Commit eaf6e59

Browse files
author
Kevin Burke
committed
Decode HTTP response
1 parent e10e582 commit eaf6e59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

twilio/rest/resources/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def make_request(method, url, params=None, data=None, headers=None,
5858
resp, content = http.request(url, method, headers=headers, body=data)
5959

6060
# Format httplib2 request as requests object
61-
return Response(resp, content, url)
61+
return Response(resp, content.decode('utf-8'), url)
6262

6363

6464
def make_twilio_request(method, uri, **kwargs):

0 commit comments

Comments
 (0)
0