Return fixed fileserver header

This commit is contained in:
allegroai 2022-03-15 16:21:52 +02:00
parent 02933a9c93
commit 941927dfcd

View File

@ -29,6 +29,12 @@ app.config["SEND_FILE_MAX_AGE_DEFAULT"] = config.get(
)
@app.after_request
def after_request(response):
response.headers["server"] = config.get("fileserver.response.headers.server", "clearml")
return response
@app.route("/", methods=["POST"])
def upload():
results = []