René's URL Explorer Experiment


Title: fix: Empty last chunk case in resumable upload that is not a stream by john0312 · Pull Request #1802 · googleapis/google-api-python-client · GitHub

Open Graph Title: fix: Empty last chunk case in resumable upload that is not a stream by john0312 · Pull Request #1802 · googleapis/google-api-python-client

X Title: fix: Empty last chunk case in resumable upload that is not a stream by john0312 · Pull Request #1802 · googleapis/google-api-python-client

Description: For an upload that inherits the MediaUpload class and is not a stream, if the size of the upload is exact multiples of the chunksize, the last chunk would be empty and the generated Content-Range h...

Open Graph Description: For an upload that inherits the MediaUpload class and is not a stream, if the size of the upload is exact multiples of the chunksize, the last chunk would be empty and the generated Content-Range h...

X Description: For an upload that inherits the MediaUpload class and is not a stream, if the size of the upload is exact multiples of the chunksize, the last chunk would be empty and the generated Content-Range h...

Opengraph URL: https://github.com/googleapis/google-api-python-client/pull/1802

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:7228dfda-7a07-5ac9-f53f-520e05c8931a
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDBA2:1ADB68:1E4B04:28B886:69715067
html-safe-nonce63239b3399f71c97b3e2cc2ed953777fada025aa26e8c4879606d486b60d488c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQkEyOjFBREI2ODoxRTRCMDQ6MjhCODg2OjY5NzE1MDY3IiwidmlzaXRvcl9pZCI6IjYwNjYwMzA3NDc3MDMxMzYzNTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac57aa8481c7eaf9949e9580327062902673739951ad89fb672e93a16523e5e574
hovercard-subject-tagpull_request:937530259
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/googleapis/google-api-python-client/1802/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/40d814245463e4e32c493744b88c253bd81506eee2786addab897ca5a4df9600/googleapis/google-api-python-client/pull/1802
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/40d814245463e4e32c493744b88c253bd81506eee2786addab897ca5a4df9600/googleapis/google-api-python-client/pull/1802
og:image:altFor an upload that inherits the MediaUpload class and is not a stream, if the size of the upload is exact multiples of the chunksize, the last chunk would be empty and the generated Content-Range h...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejohn0312
hostnamegithub.com
expected-hostnamegithub.com
Noneda7cbccf7f40bcd9540003423d9bef63b2fe7bb0b73fc59d91b5ae5b46000c90
turbo-cache-controlno-preview
go-importgithub.com/googleapis/google-api-python-client git https://github.com/googleapis/google-api-python-client.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id15749269
octolytics-dimension-repository_nwogoogleapis/google-api-python-client
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id15749269
octolytics-dimension-repository_network_root_nwogoogleapis/google-api-python-client
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec9e6c71b091ca750658a3b2e3c82b0b85555f788
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F1802
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F1802
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=googleapis%2Fgoogle-api-python-client
Reloadhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802
Reloadhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802
Reloadhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802
googleapis https://patch-diff.githubusercontent.com/googleapis
google-api-python-clienthttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client
Fork 2.5k https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client
Star 8.7k https://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client
Code https://patch-diff.githubusercontent.com/googleapis/google-api-python-client
Issues 159 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/issues
Pull requests 19 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pulls
Discussions https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/discussions
Actions https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/actions
Projects 0 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/projects
Security Uh oh! There was an error while loading. Please reload this page. https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/security
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802
Insights https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pulse
Code https://patch-diff.githubusercontent.com/googleapis/google-api-python-client
Issues https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/issues
Pull requests https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pulls
Discussions https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/discussions
Actions https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/actions
Projects https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/projects
Security https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/security
Insights https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fgoogleapis%2Fgoogle-api-python-client%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fgoogleapis%2Fgoogle-api-python-client%2Fissues%2Fnew%2Fchoose
Jump to bottomhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#issue-comment-box
john0312https://patch-diff.githubusercontent.com/john0312
googleapis:mainhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/tree/main
john0312:fix-empty-last-chunkhttps://patch-diff.githubusercontent.com/john0312/google-api-python-client/tree/fix-empty-last-chunk
fix: Empty last chunk case in resumable upload that is not a stream https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#top
john0312https://patch-diff.githubusercontent.com/john0312
googleapis:mainhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/tree/main
john0312:fix-empty-last-chunkhttps://patch-diff.githubusercontent.com/john0312/google-api-python-client/tree/fix-empty-last-chunk
Conversation 3 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802
Commits 2 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/commits
Checks 4 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/checks
Files changed https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/files
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/john0312
john0312https://patch-diff.githubusercontent.com/john0312
May 16, 2022https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#issue-1237194784
#1801https://github.com/googleapis/google-api-python-client/issues/1801
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802
https://patch-diff.githubusercontent.com/john0312
fix: Empty last chunk case in resumable upload that is not a streamhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/commits/31e19678665be5d0c8473734e5004251060e0199
31e1967https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/commits/31e19678665be5d0c8473734e5004251060e0199
https://patch-diff.githubusercontent.com/john0312
john0312https://patch-diff.githubusercontent.com/john0312
code ownerhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/blob/024aa3782a35c569cfb94308bd61f785e37d5ae2/.github/CODEOWNERS#L8
May 16, 2022 13:51https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#event-6616361760
https://patch-diff.githubusercontent.com/apps/product-auto-label
product-auto-labelhttps://patch-diff.githubusercontent.com/apps/product-auto-label
size: s https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22size%3A%20s%22
May 16, 2022https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#event-6616362136
https://patch-diff.githubusercontent.com/parthea
partheahttps://patch-diff.githubusercontent.com/parthea
May 17, 2022https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#event-6624257338
https://patch-diff.githubusercontent.com/Blessed4eva
Blessed4evahttps://patch-diff.githubusercontent.com/Blessed4eva
Aug 18, 2022https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#issuecomment-1219011897
MediaUpload with has_stream() = False and an empty last chunk results in HTTP Error 400 #1801https://github.com/googleapis/google-api-python-client/issues/1801
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802
https://patch-diff.githubusercontent.com/Blessed4eva
Blessed4evahttps://patch-diff.githubusercontent.com/Blessed4eva
Aug 18, 2022 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#pullrequestreview-1076665474
View reviewed changes https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
https://patch-diff.githubusercontent.com/parthea
partheahttps://patch-diff.githubusercontent.com/parthea
Oct 25, 2024https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#event-14875485082
https://patch-diff.githubusercontent.com/chalmerlowe
Merge branch 'main' into fix-empty-last-chunkhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/commits/1f7f16033b37ff2686c3876eb83e3ca434d07407
1f7f160https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/commits/1f7f16033b37ff2686c3876eb83e3ca434d07407
https://patch-diff.githubusercontent.com/chalmerlowe
chalmerlowehttps://patch-diff.githubusercontent.com/chalmerlowe
code ownerhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/blob/a1fd6f358f475a17612fe374502666581d571a8c/.github/CODEOWNERS#L8
December 11, 2025 16:32https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#event-21508770842
https://patch-diff.githubusercontent.com/chalmerlowe
chalmerlowehttps://patch-diff.githubusercontent.com/chalmerlowe
kokoro:force-run https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3Akokoro%3Aforce-run
Dec 11, 2025https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#event-21509003322
https://patch-diff.githubusercontent.com/yoshi-kokoro
yoshi-kokorohttps://patch-diff.githubusercontent.com/yoshi-kokoro
kokoro:force-run https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3Akokoro%3Aforce-run
Dec 11, 2025https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#event-21509014639
https://patch-diff.githubusercontent.com/chalmerlowe
chalmerlowehttps://patch-diff.githubusercontent.com/chalmerlowe
Dec 11, 2025 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#pullrequestreview-3568557704
View reviewed changes https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
chalmerlowehttps://patch-diff.githubusercontent.com/chalmerlowe
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#pullrequestreview-3568557704
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802
https://patch-diff.githubusercontent.com/salomankevin655-beep
salomankevin655-beephttps://patch-diff.githubusercontent.com/salomankevin655-beep
Dec 11, 2025 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#pullrequestreview-3569007969
View reviewed changes https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
https://patch-diff.githubusercontent.com/vchudnov-g
vchudnov-ghttps://patch-diff.githubusercontent.com/vchudnov-g
Dec 11, 2025 https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#pullrequestreview-3569031000
View reviewed changes https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
googleapiclient/http.pyhttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407#diff-e492230da11e54b269c88852dc3b74a37cae746493f8d7ad91bc273ecf6b10fd
vchudnov-ghttps://patch-diff.githubusercontent.com/vchudnov-g
Dec 11, 2025https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802#discussion_r2611848521
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fgoogle-api-python-client%2Fpull%2F1802
https://patch-diff.githubusercontent.com/vchudnov-g
vchudnov-g https://patch-diff.githubusercontent.com/vchudnov-g
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
https://patch-diff.githubusercontent.com/chalmerlowe
chalmerlowe https://patch-diff.githubusercontent.com/chalmerlowe
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
https://patch-diff.githubusercontent.com/Blessed4eva
Blessed4eva https://patch-diff.githubusercontent.com/Blessed4eva
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
https://patch-diff.githubusercontent.com/salomankevin655-beep
salomankevin655-beep https://patch-diff.githubusercontent.com/salomankevin655-beep
https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802/files/1f7f16033b37ff2686c3876eb83e3ca434d07407
size: s https://patch-diff.githubusercontent.com/googleapis/google-api-python-client/issues?q=state%3Aopen%20label%3A%22size%3A%20s%22
MediaUpload with has_stream() = False and an empty last chunk results in HTTP Error 400 https://github.com/googleapis/google-api-python-client/issues/1801
Please reload this pagehttps://patch-diff.githubusercontent.com/googleapis/google-api-python-client/pull/1802
https://patch-diff.githubusercontent.com/john0312
https://patch-diff.githubusercontent.com/Blessed4eva
https://patch-diff.githubusercontent.com/vchudnov-g
https://patch-diff.githubusercontent.com/chalmerlowe
https://patch-diff.githubusercontent.com/salomankevin655-beep
https://patch-diff.githubusercontent.com/parthea
https://patch-diff.githubusercontent.com/yoshi-kokoro
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.