Skip to content

Commit

Permalink
Merge pull request #47 from henilp105/main
Browse files Browse the repository at this point in the history
fix: file type octet stream
  • Loading branch information
henilp105 committed Jun 26, 2023
2 parents 4705f7b + 2605a3e commit e9fcf03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def upload():
{"name": package_name, "namespace": namespace_doc["_id"]}
)

if tarball.content_type not in ["application/gzip", "application/zip"]:
if tarball.content_type not in ["application/gzip", "application/zip","application/octet-stream"]:
return jsonify({"code": 400, "message": "Invalid file type"}), 400

tarball_name = "{}-{}.tar.gz".format(package_name, package_version)
Expand Down

0 comments on commit e9fcf03

Please sign in to comment.