Skip to content

Commit

Permalink
removing accept headers for delete operation
Browse files Browse the repository at this point in the history
  • Loading branch information
AsabuHere committed Dec 12, 2024
1 parent 66f3e28 commit 88f6623
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions twilio/base/client_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ def request(
else:
auth = None

if method == 'DELETE':
del headers["Accept"]

uri = self.get_hostname(uri)
filtered_data = self.copy_non_none_values(data)
return self.http_client.request(
Expand Down Expand Up @@ -147,6 +150,8 @@ async def request_async(
)

headers = self.get_headers(method, headers)
if method == 'DELETE':
del headers["Accept"]

##If credential provider is provided by user, get the associated auth strategy
##Using the auth strategy, fetch the auth string and set it to authorization header
Expand Down
2 changes: 1 addition & 1 deletion twilio/rest/preview_iam/versionless/organization/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ async def fetch_async(self) -> "UserInstance":


def update(self, scim_user: ScimUser, if_match: Union[str, object]=values.unset) -> "UserInstance":
"""hello3
"""
Update the UserInstance
:param scim_user:
Expand Down

0 comments on commit 88f6623

Please sign in to comment.