8000 removing accept headers for delete operation · twilio/twilio-python@88f6623 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 88f6623

Browse files
committed
removing accept headers for delete operation
1 parent 66f3e28 commit 88f6623

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

twilio/base/client_base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ def request(
101101
else:
102102
auth = None
103103

104+
if method == 'DELETE':
105+
del headers["Accept"]
106+
104107
uri = self.get_hostname(uri)
105108
filtered_data = self.copy_non_none_values(data)
106109
return self.http_client.request(
@@ -147,6 +150,8 @@ async def request_async(
147150
)
148151

149152
headers = self.get_headers(method, headers)
153+
if method == 'DELETE':
154+
del headers["Accept"]
150155

151156
##If credential provider is provided by user, get the associated auth strategy
152157
##Using the auth strategy, fetch the auth string and set it to authorization header

twilio/rest/preview_iam/versionless/organization/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ async def fetch_async(self) -> "UserInstance":
253253

254254

255255
def update(self, scim_user: ScimUser, if_match: Union[str, object]=values.unset) -> "UserInstance":
256-
"""hello3
256+
"""
257257
Update the UserInstance
258258
259259
:param scim_user:

0 commit comments

Comments
 (0)
0