FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: don't set content-range on empty uploads by busunkim96 · Pull Request #1070 · googleapis/google-api-python-client · GitHub

fix: don't set content-range on empty uploads - #1070

Merged
busunkim96 merged 2 commits into
googleapis:masterfrom
busunkim96:upload-empty-files
Oct 20, 2020
Merged

fix: don't set content-range on empty uploads#1070
busunkim96 merged 2 commits into
googleapis:masterfrom
busunkim96:upload-empty-files

Conversation

busunkim96 commented Oct 20, 2020
edited
Loading

Copy link
Copy Markdown
Contributor

Fixes #638 🦕

Setting the content-range header on an empty resumable upload results in 400 Invalid Argument. Only set the content-range if there is content. This is what the Java discovery client does (code).

TODO:

  • add unit test case

google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 20, 2020
busunkim96 marked this pull request as ready for review October 20, 2020 15:15
busunkim96 merged commit af6035f into googleapis:master Oct 20, 2020
efiop pushed a commit to iterative/PyDrive2 that referenced this pull request Oct 22, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HttpError 400 on uploading 0 bytes files, 416 on downloading 0 bytes files

2 participants


Back | FazBrowse Home | New Git URL