Skip to content

Commit 0cb2890

Browse files
authored
Fix upload fetcher when using upload data. Broken by PR #141. (#189)
1 parent b5e3d41 commit 0cb2890

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/GTMSessionUploadFetcher.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ - (void)chunkFetcher:(GTMSessionFetcher *)chunkFetcher
15071507
responseHeaders);
15081508
#endif
15091509
if (isUploadStatusStopped ||
1510-
_uploadFileLength == 0 ||
1510+
(!_uploadData && _uploadFileLength == 0) ||
15111511
(_currentOffset > _uploadFileLength && _uploadFileLength > 0)) {
15121512
// This was the last chunk.
15131513
if (error == nil && uploadStatus == kStatusCancelled) {

0 commit comments

Comments
 (0)