mirror of
https://github.com/clearml/clearml-server
synced 2025-01-31 02:46:53 +00:00
Return fixed fileserver header
This commit is contained in:
parent
02933a9c93
commit
941927dfcd
@ -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 = []
|
||||
|
Loading…
Reference in New Issue
Block a user