fix: Connection: close в after_request — XHR не держат keep-alive после запросов
Deploy drhider / validate (push) Waiting to run
Deploy drhider / validate (push) Waiting to run
This commit is contained in:
+2
-1
@@ -20,7 +20,7 @@ if _sys_path_root not in sys.path:
|
||||
sys.path.insert(0, _sys_path_root)
|
||||
|
||||
# Версия приложения (меняется при изменениях)
|
||||
VERSION = "4.0.0"
|
||||
VERSION = "4.0.1"
|
||||
|
||||
|
||||
def create_app():
|
||||
@@ -51,6 +51,7 @@ def create_app():
|
||||
response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
|
||||
response.headers["Pragma"] = "no-cache"
|
||||
response.headers["Expires"] = "0"
|
||||
response.headers["Connection"] = "close"
|
||||
return response
|
||||
|
||||
return app
|
||||
|
||||
Reference in New Issue
Block a user