Browse Source

ensuring all failures are upgraded

Rodja Trappe 1 year ago
parent
commit
5059a0806c
1 changed files with 1 additions and 1 deletions
  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: