diff --git a/src/main/resources/python/swagger.mustache b/src/main/resources/python/swagger.mustache index e87b834d786..834be596c4c 100644 --- a/src/main/resources/python/swagger.mustache +++ b/src/main/resources/python/swagger.mustache @@ -68,7 +68,7 @@ class ApiClient: if 'Content-type' not in headers: headers['Content-type'] = 'application/json' 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 data = self.buildMultipartFormData(postData, files) else: