10000
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 98ffc7e commit ad1f208Copy full SHA for ad1f208
twilio/base/client_base.py
@@ -184,7 +184,7 @@ def get_headers(
184
185
# Types, encodings, etc.
186
headers["Accept-Charset"] = "utf-8"
187
- if method == "POST" and "Content-Type" not in headers:
+ if (method == "POST" or method == "PUT") and ("Content-Type" not in headers):
188
headers["Content-Type"] = "application/x-www-form-urlencoded"
189
if "Accept" not in headers:
190
headers["Accept"] = "application/json"
0 commit comments