8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51fa45e commit 25f6670Copy full SHA for 25f6670
twilio/http/httplib2_client.py
@@ -1,6 +1,8 @@
1
+from base64 import b64encode
2
+
3
import httplib2
-from six import integer_types, string_types, iteritems
4
from six import binary_type
5
+from six import integer_types, string_types, iteritems
6
7
from twilio.compat import urlencode, urlparse
8
from twilio.http import get_cert_file, HttpClient
@@ -45,7 +47,8 @@ def request(self,
45
47
http.follow_redirects = allow_redirects
46
48
49
if auth is not None:
- http.add_credentials(auth[0], auth[1])
50
+ headers = headers or {}
51
+ headers["Authorization"] = "Basic {}".format(b64encode(':'.join(auth)))
52
53
if data is not None:
54
udata = {}
0 commit comments