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

Blessed4eva

chalmerlowe

salomankevin655-beep

vchudnov-g

@john0312

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 header will result
in "Bad Request". Details: "Failed to parse Content-Range header."

vchudnov-g