-
Notifications
You must be signed in to change notification settings - Fork 20
Feat: Added Delete for me support on behalf of a user #204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| async def delete( | ||
| self, relative_url: str, params: Dict = None, data: Any = None | ||
| ) -> StreamResponse: | ||
| return await self._make_request(self.session.delete, relative_url, params, data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to allow delete(relative_url, params=None, data=None) in async client to match sync behavior.
| if method.__name__ in ["post", "put", "patch"] or ( | ||
| method.__name__ == "delete" and data | ||
| ): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to serialize DELETE body only when data is provided; keeps existing DELETEs unchanged.
Submit a pull request
CLA
Description of the pull request