From 941927dfcd5e3493e082bea28cf5853394b5d6c7 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Tue, 15 Mar 2022 16:21:52 +0200 Subject: [PATCH] Return fixed fileserver header --- fileserver/fileserver.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fileserver/fileserver.py b/fileserver/fileserver.py index f5d536b..65f2d8c 100644 --- a/fileserver/fileserver.py +++ b/fileserver/fileserver.py @@ -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 = []