We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a132000 commit ed18026Copy full SHA for ed18026
gql/transport/websockets_protocol.py
@@ -483,7 +483,10 @@ 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.adapter.subprotocols is None or self.APOLLO_SUBPROTOCOL in self.adapter.subprotocols:
+ if (
487
+ self.adapter.subprotocols is None
488
+ or self.APOLLO_SUBPROTOCOL in self.adapter.subprotocols
489
+ ):
490
self.subprotocol = self.APOLLO_SUBPROTOCOL
491
else:
492
self.subprotocol = self.GRAPHQLWS_SUBPROTOCOL
0 commit comments