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 d0d4044 commit b5fafca
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions twilio/http/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,10 @@ def request(
"auth": auth,
"hooks": self.request_hooks,
}

if headers and headers.get('Content-Type') == 'application/json':
kwargs['json'] = data
else:
kwargs['data'] = data

self.log_request(kwargs)

self._test_only_last_response = None
Expand Down

0 comments on commit b5fafca

Please sign in to comment.