Skip to content

Removed _prepare_files logic#35

Open
erz9engel wants to merge 2 commits intomainfrom
prepare_files_bug
Open

Removed _prepare_files logic#35
erz9engel wants to merge 2 commits intomainfrom
prepare_files_bug

Conversation

@erz9engel
Copy link
Collaborator

Original idea of _prepare_files logic was to ensure that different types of incoming files data is properly transformed into httpx files format.
As a result additional logic introduced a bug with attachments. Deeper comparison of requests and httpx libraries shows that they use the same approach to files parameter.
So we can drop additional logic and use the same approach as in sync version of Endpoint.

Original idea of _prepare logic was to ensure that different types of
incoming files data is properly transformed into httpx files format.
As a result additional logic introduced a bug with attachments. Deeper
comparison of 'requests' and 'httpx' libraries shows that they use the same
approach to 'files' parameter. So we can drop additional logic and use
the same approach as in sync version of Endpoint.
@erz9engel erz9engel self-assigned this Mar 18, 2026
@erz9engel erz9engel requested a review from skupriienko March 18, 2026 21:36
Copy link
Collaborator

@skupriienko skupriienko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please check that the tests pass and there are no side effects.

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.

2 participants