MultipartForm: fixing syntax error

This commit is contained in:
James Ebentier 2015-02-03 19:01:31 -08:00
parent 55575541d8
commit 63bb20238b

View File

@ -68,7 +68,7 @@ class ApiClient:
if 'Content-type' not in headers: if 'Content-type' not in headers:
headers['Content-type'] = 'application/json' headers['Content-type'] = 'application/json'
data = json.dumps(postData) data = json.dumps(postData)
else if headers['Content-type'] == 'multipart/form': elif headers['Content-type'] == 'multipart/form':
headers['Content-type'] = 'multipart/form; boundry=%s' % self.boundary headers['Content-type'] = 'multipart/form; boundry=%s' % self.boundary
data = self.buildMultipartFormData(postData, files) data = self.buildMultipartFormData(postData, files)
else: else: