瀏覽代碼

ensuring all failures are upgraded

Rodja Trappe 1 年之前
父節點
當前提交
5059a0806c
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -79,7 +79,7 @@ class FlyReplayMiddleware(BaseHTTPMiddleware):
 
 
         async def send_wrapper(message):
         async def send_wrapper(message):
             if target_instance != fly_instance_id:
             if target_instance != fly_instance_id:
-                if message['type'] == 'websocket.close' and 'Invalid session' in message['reason']:
+                if message['type'] == 'websocket.close':
                     # fly.io only seems to look at the fly-replay header if websocket is accepted
                     # fly.io only seems to look at the fly-replay header if websocket is accepted
                     message = {'type': 'websocket.accept'}
                     message = {'type': 'websocket.accept'}
                 if 'headers' not in message:
                 if 'headers' not in message: