Skip to content

Commit

Permalink
Revert "Bszabo/tnl 11327 file upload (#257)"
Browse files Browse the repository at this point in the history
This reverts commit 551a418.
  • Loading branch information
jesperhodge authored Dec 20, 2023
1 parent 551a418 commit 2ade446
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions scripts/aws/common/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 2ade446

Please sign in to comment.