From 12ad92986e2d59ed01c5ed6ab2631de12f7a8238 Mon Sep 17 00:00:00 2001 From: Brian Krabach Date: Tue, 7 Apr 2026 08:10:14 -0700 Subject: [PATCH] fix: consolidate WS proxy Bearer header guard to single line for CI test The source-inspection test checks each line individually for an 'if' guard. The multi-line formatting of the 'if remote_key else {}' guard split it across 3 lines, making the test see an unguarded header. Consolidated to match the single-line pattern of the other 4 endpoints. --- muxplex/main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/muxplex/main.py b/muxplex/main.py index b3f2623..05ef95e 100644 --- a/muxplex/main.py +++ b/muxplex/main.py @@ -785,9 +785,7 @@ async def federation_terminal_ws_proxy(websocket: WebSocket, remote_id: int) -> async with websockets.connect( ws_url, subprotocols=[Subprotocol("tty")], - additional_headers={"Authorization": f"Bearer {remote_key}"} - if remote_key - else {}, + additional_headers={"Authorization": f"Bearer {remote_key}"} if remote_key else {}, ssl=ssl_context, ) as remote_ws: