From 7fc549babc6bfacd5db2390442812f8309694667 Mon Sep 17 00:00:00 2001 From: Per Pascal Seeland Date: Sun, 29 Oct 2023 17:04:33 +0100 Subject: [PATCH] Fix remove mimetype tag with static string --- src/volumecreator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/volumecreator.py b/src/volumecreator.py index 3f7b6bb..0db5b9e 100644 --- a/src/volumecreator.py +++ b/src/volumecreator.py @@ -16,7 +16,7 @@ def jsonify_no_content(): response = make_response('', 204) - response.mimetype = app.config['JSONIFY_MIMETYPE'] + response.mimetype = "application/json" return response regex = re.compile( @@ -118,4 +118,4 @@ def post_file_to_s3(name): print(response) with open(app.config["UPLOAD_FOLDER"] + '/' + name, 'rb') as f: r = requests.put(response["target"], data=f) - return jsonify(r.status_code) \ No newline at end of file + return jsonify(r.status_code)