Skip to content

Commit 98708f0

Browse files
committed
twilio python changes for orgs api uptake
1 parent 1ba2f9b commit 98708f0

File tree

2 files changed

+4
-33
lines changed

2 files changed

+4
-33
lines changed

twilio/http/bearer_token_http_client.py

Lines changed: 0 additions & 30 deletions
This file was deleted.

twilio/http/http_client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@ def request(
7979
elif timeout <= 0:
8080
raise ValueError(timeout)
8181

82-
if "Requires-Authentication" in headers:
83-
headers.pop("Requires-Authentication", None)
84-
auth = None
82+
if headers:
83+
if "Requires-Authentication" in headers:
84+
headers.pop("Requires-Authentication", None)
85+
auth = None
8586

8687
kwargs = {
8788
"method": method.upper(),

0 commit comments

Comments
 (0)