Skip to content

Commit 9ae9ab1

Browse files
Merge pull request #1732 from th3neken/graphql-ws-missing-header-fix
fix(@nestjs/graphql): fixed fatal error regarding graphql-ws
2 parents 1810d01 + 4ea6609 commit 9ae9ab1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/graphql-ws/graphql-subscription.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export class GraphQLSubscriptionService {
8787
? protocol
8888
: protocol?.split(',').map((p) => p.trim());
8989

90-
protocols = protocols.filter((protocol) =>
90+
protocols = protocols?.filter((protocol) =>
9191
supportedProtocols.includes(protocol),
9292
);
9393

0 commit comments

Comments
 (0)