Comparing version 6.2.2 to 6.2.3
@@ -189,2 +189,3 @@ 'use strict'; | ||
: false; | ||
const upgrade = req.headers.upgrade; | ||
const version = +req.headers['sec-websocket-version']; | ||
@@ -195,3 +196,4 @@ const extensions = {}; | ||
req.method !== 'GET' || | ||
req.headers.upgrade.toLowerCase() !== 'websocket' || | ||
upgrade === undefined || | ||
upgrade.toLowerCase() !== 'websocket' || | ||
!key || | ||
@@ -198,0 +200,0 @@ !keyRegex.test(key) || |
{ | ||
"name": "ws", | ||
"version": "6.2.2", | ||
"version": "6.2.3", | ||
"description": "Simple to use, blazing fast and thoroughly tested websocket client and server for Node.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
101795
2843