lib/twilio-ruby/rest/content/v1/content/approval_create.rb in twilio-ruby-7.1.1 vs lib/twilio-ruby/rest/content/v1/content/approval_create.rb in twilio-ruby-7.2.0

- old
+ new

@@ -53,11 +53,12 @@ # @param [ContentApprovalRequest] content_approval_request # @return [ApprovalCreateInstance] Created ApprovalCreateInstance def create(content_approval_request: nil ) - headers = Twilio::Values.of({"Content-Type"=> "application/json"}) - payload = @version.create('POST', @uri, data: content_approval_request.to_json, headers: headers) + headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', }) + headers['Content-Type'] = 'application/json' + payload = @version.create('POST', @uri, headers: headers, data: content_approval_request.to_json) ApprovalCreateInstance.new( @version, payload, content_sid: @solution[:content_sid], )