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

Change the attachment request to pass a file handle rather than reading in the bytes #383

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

gregtatum
Copy link
Contributor

I was having some attachments get truncated when using this API, and tracked it down to the line where the file is being read into bytes. I'm not sure why this is truncating the file, but the fix is to pass in a file handle instead to requests.

Copy link
Contributor

@leplatrem leplatrem left a comment

Choose a reason for hiding this comment

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

Thank you for taking the time to contribute the fix 🙏

src/kinto_http/client.py Show resolved Hide resolved
tests/test_client.py Outdated Show resolved Hide resolved
@leplatrem leplatrem merged commit f85e012 into Kinto:main Dec 11, 2024
1 of 2 checks passed
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