You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.
What steps will reproduce the problem?
1. upload a zero byte length file
What is the expected output? What do you see instead?
Expected: upload is fine
Actual: Assertion triggered at line 471
What version of the product are you using? On what operating system?
Google API client library, iOS 6
Please provide any additional information below.
The assertion should be "offset <= dataLen" instead of "offset < dataLen"
For the Content-Range value implementation, it should be
if(thisChunkSize)
rangeStr = [NSString stringWithFormat:@"bytes %llu-%llu/%llu",
(unsigned long long)offset,
(unsigned long long)(offset + thisChunkSize - 1),
(unsigned long long)dataLen];
else
rangeStr = @"bytes */0";
instead of just
rangeStr = [NSString stringWithFormat:@"bytes %llu-%llu/%llu",
(unsigned long long)offset,
(unsigned long long)(offset + thisChunkSize - 1),
(unsigned long long)dataLen];
to produce valid value even for zero-length Content-Length
Original issue reported on code.google.com by vinceplu...@gmail.com on 29 Jul 2013 at 1:13
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
vinceplu...@gmail.com
on 29 Jul 2013 at 1:13The text was updated successfully, but these errors were encountered: