Skip to content

Commit a132000

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gql/transport/websockets_protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ 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.APOLLO_SUBPROTOCOL in self.adapter.subprotocols:
486+
if self.adapter.subprotocols is None or self.APOLLO_SUBPROTOCOL in self.adapter.subprotocols:
487487
self.subprotocol = self.APOLLO_SUBPROTOCOL
488488
else:
489489
self.subprotocol = self.GRAPHQLWS_SUBPROTOCOL

0 commit comments

Comments
 (0)