Merge pull request #178 from simplysoft/master

only upload media if there is one
This commit is contained in:
Steve Bazyl 2014-12-08 15:35:21 -08:00
commit 95823b0e19
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ module Google
# Resumamble slightly different than other upload protocols in that it requires at least
# 2 requests.
if result.status == 200 && self.upload_type == 'resumable'
if result.status == 200 && self.upload_type == 'resumable' && self.media
upload = result.resumable_upload
unless upload.complete?
logger.debug { "#{self.class} Sending upload body" }