From 2ade446bd9109e91825a60d22b6d672936465da6 Mon Sep 17 00:00:00 2001 From: Jesper Hodge <19345795+jesperhodge@users.noreply.github.com> Date: Wed, 20 Dec 2023 15:59:02 -0500 Subject: [PATCH] Revert "Bszabo/tnl 11327 file upload (#257)" This reverts commit 551a4185c04d8a2bf236a3b46de6174c46bfb085. --- scripts/aws/common/deploy.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/aws/common/deploy.py b/scripts/aws/common/deploy.py index 407fa89..8185207 100755 --- a/scripts/aws/common/deploy.py +++ b/scripts/aws/common/deploy.py @@ -60,12 +60,7 @@ def deploy_api(client, rest_api_id, swagger_filename, stage_name, stage_variable swagger = open(swagger_filename, 'r', encoding="utf-8") # pylint: disable=consider-using-with - api_response = client.put_rest_api( - restApiId=rest_api_id, - mode='overwrite', - body=swagger.read(), - parameters={'binaryMediaTypes': 'multipart/form-data'}, # This MIME needs to be binary for file uploads - ) + api_response = client.put_rest_api(restApiId=rest_api_id, mode='overwrite', body=swagger.read()) logging.info('Existing API ID "%s" updated (name "%s")', api_response['id'], api_response['name']) deployment_response = client.create_deployment(