Don't attempt resumable upload if initial response failed (Issue #32)
This commit is contained in:
parent
35c38a1ce8
commit
d68dc4d27e
|
@ -165,7 +165,7 @@ module Google
|
|||
|
||||
# Resumamble slightly different than other upload protocols in that it requires at least
|
||||
# 2 requests.
|
||||
if self.upload_type == 'resumable'
|
||||
if result.status == 200 && self.upload_type == 'resumable'
|
||||
upload = result.resumable_upload
|
||||
unless upload.complete?
|
||||
logger.debug { "#{self.class} Sending upload body" }
|
||||
|
|
Loading…
Reference in New Issue