fix: Connection: close на всех ответах — nginx не кэширует upstream keepalive
Deploy drhider / validate (push) Waiting to run
Deploy drhider / validate (push) Waiting to run
This commit is contained in:
@@ -93,7 +93,7 @@ def process_stream(sid):
|
||||
return Response(
|
||||
stream_with_context(generate()),
|
||||
content_type="text/event-stream",
|
||||
headers={"Cache-Control": "no-cache", "X-Accel-Buffering": "no"}
|
||||
headers={"Cache-Control": "no-cache", "X-Accel-Buffering": "no", "Connection": "close"}
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user