Skip to content

Commit ed18026

Browse files
committed
fixup! fixup! Don't fall back to Apollo when not in subprotocols
1 parent a132000 commit ed18026

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

gql/transport/websockets_protocol.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,10 @@ async def _after_connect(self):
483483
except KeyError:
484484
# If the server does not send the subprotocol header, use
485485
# the apollo subprotocol by default unless we didn't ask for it
486-
if self.adapter.subprotocols is None or self.APOLLO_SUBPROTOCOL in self.adapter.subprotocols:
486+
if (
487+
self.adapter.subprotocols is None
488+
or self.APOLLO_SUBPROTOCOL in self.adapter.subprotocols
489+
):
487490
self.subprotocol = self.APOLLO_SUBPROTOCOL
488491
else:
489492
self.subprotocol = self.GRAPHQLWS_SUBPROTOCOL

0 commit comments

Comments
 (0)