Skip to content

Commit

Permalink
feat: TNL-11327 fix syntax for media type config
Browse files Browse the repository at this point in the history
  • Loading branch information
bszabo authored and Bernard Szabo committed Dec 21, 2023
1 parent 24c4fe0 commit 6ee480c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/aws/common/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def deploy_api(client, rest_api_id, swagger_filename, stage_name, stage_variable
restApiId=rest_api_id,
mode='overwrite',
body=swagger.read(),
binaryMediaTypes=['multipart/form-data'] # This MIME needs to be binary for file uploads
parameters={'binaryMediaTypes': 'multipart/form-data'}, # This MIME needs to be binary for file uploads
)
logging.info('Existing API ID "%s" updated (name "%s")', api_response['id'], api_response['name'])

Expand Down

0 comments on commit 6ee480c

Please sign in to comment.