We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9204d32 commit a132000Copy full SHA for a132000
1 file changed
gql/transport/websockets_protocol.py
@@ -483,7 +483,7 @@ async def _after_connect(self):
483
except KeyError:
484
# If the server does not send the subprotocol header, use
485
# the apollo subprotocol by default unless we didn't ask for it
486
- if self.APOLLO_SUBPROTOCOL in self.adapter.subprotocols:
+ if self.adapter.subprotocols is None or self.APOLLO_SUBPROTOCOL in self.adapter.subprotocols:
487
self.subprotocol = self.APOLLO_SUBPROTOCOL
488
else:
489
self.subprotocol = self.GRAPHQLWS_SUBPROTOCOL
0 commit comments