Skip to content

Commit

Permalink
feat: add application/json support for client
Browse files Browse the repository at this point in the history
  • Loading branch information
manisha1997 committed Nov 28, 2023
1 parent b5fafca commit e4d0561
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions twilio/http/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ def request(
"auth": auth,
"hooks": self.request_hooks,
}
if headers and headers.get('Content-Type') == 'application/json':
kwargs['json'] = data
if headers and headers.get("Content-Type") == "application/json":
kwargs["json"] = data
else:
kwargs['data'] = data
kwargs["data"] = data
self.log_request(kwargs)

self._test_only_last_response = None
Expand Down

0 comments on commit e4d0561

Please sign in to comment.