Fix server headers
This commit is contained in:
@@ -81,11 +81,6 @@ def create_app(
|
||||
app.extensions["connections"] = connections
|
||||
app.extensions["replication"] = replication
|
||||
|
||||
@app.after_request
|
||||
def set_server_header(response):
|
||||
response.headers["Server"] = "MyFSIO"
|
||||
return response
|
||||
|
||||
@app.errorhandler(500)
|
||||
def internal_error(error):
|
||||
return render_template('500.html'), 500
|
||||
@@ -220,5 +215,5 @@ def _configure_logging(app: Flask) -> None:
|
||||
},
|
||||
)
|
||||
response.headers["X-Request-Duration-ms"] = f"{duration_ms:.2f}"
|
||||
response.headers["Server"] = "MyFISO"
|
||||
response.headers["Server"] = "MyFSIO"
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user