Преглед на файлове

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):
             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
                     message = {'type': 'websocket.accept'}
                 if 'headers' not in message: