Skip to content
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

Send multipart Faraday only when needed #123

Merged
merged 2 commits into from
Feb 11, 2024

Conversation

ignacio-chiazzo
Copy link
Owner

@ignacio-chiazzo ignacio-chiazzo commented Feb 10, 2024

We were sending multipart HTTP requests for any request instead of the ones that upload files.

This PR makes multipart set to false by default and only true in case of uploading files. Note that there are some APIs that send Audio and images through an ID or Link but don't submit the file itself.

@ignacio-chiazzo ignacio-chiazzo force-pushed the use-multipart-only-when-needed branch from 2cb6db8 to 7855efa Compare February 11, 2024 19:20
@ignacio-chiazzo ignacio-chiazzo merged commit 081ff54 into main Feb 11, 2024
4 checks passed
@ignacio-chiazzo ignacio-chiazzo deleted the use-multipart-only-when-needed branch February 12, 2024 02:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant