Skip to content

Commit

Permalink
fix(ALPN): Fix inverted comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
triblondon authored and grantila committed Jan 29, 2019
1 parent be4d3d1 commit c33f6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/context-https.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function connectTLS(
} );

const orderedProtocols = Buffer.concat(
( _protocols.length === 0 ? _protocols : defaultMethod )
( _protocols.length !== 0 ? _protocols : defaultMethod )
.map( protocol => alpnProtocols[ protocol ] )
);

Expand Down

0 comments on commit c33f6ab

Please sign in to comment.