Skip to content

Seek file to start before hashing so 429 retries sign correctly#16

Open
philomath213 wants to merge 1 commit into
exploide:mainfrom
philomath213:fix/upload-429-retry-seek
Open

Seek file to start before hashing so 429 retries sign correctly#16
philomath213 wants to merge 1 commit into
exploide:mainfrom
philomath213:fix/upload-429-retry-seek

Conversation

@philomath213

Copy link
Copy Markdown
Contributor

This PR fixes a bug introduced in PR #15 in the file upload feature
When a signed upload hits a rate limit 429, _send retries, but requests has already consumed the file body to EOF, so without a data.seek(0) before hashing, the retry signs an empty body and authentication fails.

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