twilio / twilio-php

A PHP library for communicating with the Twilio REST API and generating TwiML.
MIT License
1.57k stars 561 forks source link

chore: fix contentType check in post and put #811

Closed tiwarishubham635 closed 5 months ago

tiwarishubham635 commented 5 months ago

Fixes

Earlier, we were setting contentType in curl client. So if contenttype is pre-set, it meant application/json. Since we are presetting each header now, we have corrected the check.

Checklist

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud