diff --git a/src/base/BaseTwilio.ts b/src/base/BaseTwilio.ts index d6a4ee757..f6651c8a7 100644 --- a/src/base/BaseTwilio.ts +++ b/src/base/BaseTwilio.ts @@ -170,7 +170,10 @@ namespace Twilio { }); headers["Accept-Charset"] = "utf-8"; - if (opts.method === "post" && !headers["Content-Type"]) { + if ( + (opts.method === "post" || opts.method === "put") && + !headers["Content-Type"] + ) { headers["Content-Type"] = "application/x-www-form-urlencoded"; }