From b5fafca454fe3768fa879195112c4eccd9495d82 Mon Sep 17 00:00:00 2001 From: manisha1997 Date: Tue, 28 Nov 2023 11:33:25 +0530 Subject: [PATCH] feat: add application/json support for client --- twilio/http/http_client.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/twilio/http/http_client.py b/twilio/http/http_client.py index 81c13626c..0403a6c82 100644 --- a/twilio/http/http_client.py +++ b/twilio/http/http_client.py @@ -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