Skip to content

Commit

Permalink
Fix remove mimetype tag with static string
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalseeland committed Oct 29, 2023
1 parent 1335623 commit 7fc549b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/volumecreator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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)
return jsonify(r.status_code)

0 comments on commit 7fc549b

Please sign in to comment.