Fix error in spelling 'mime_type'

This commit is contained in:
Joey Payne 2016-05-25 11:35:11 -06:00
commit 7a978a178c

View file

@ -40,6 +40,8 @@ class GoogleFile(object):
body = body or {}
body.update({'name': name})
mime_type = mime_type or body.get('mimeType')
if mime_type is not None:
body['mimeType'] = mime_type
else:
@ -100,7 +102,7 @@ class GoogleFile(object):
return google_file
else:
return GoogleFile.create(service, name,
mimetype=mime_type,
mime_type=mime_type,
content=content,
body=body, **params)