Update dependencies (#20)
All checks were successful
Lint / pre-commit Linting (push) Successful in 29s
All checks were successful
Lint / pre-commit Linting (push) Successful in 29s
- @actions/core - glob - screeps-api Reviewed-on: #20 Co-authored-by: Philipp Horstenkamp <philipp@horstenkamp.de> Co-committed-by: Philipp Horstenkamp <philipp@horstenkamp.de>
This commit is contained in:
6
node_modules/ws/lib/websocket-server.js
generated
vendored
6
node_modules/ws/lib/websocket-server.js
generated
vendored
@ -161,11 +161,13 @@ class WebSocketServer extends EventEmitter {
|
||||
handleUpgrade (req, socket, head, cb) {
|
||||
socket.on('error', socketOnError);
|
||||
|
||||
const upgrade = req.headers.upgrade;
|
||||
const version = +req.headers['sec-websocket-version'];
|
||||
const extensions = {};
|
||||
|
||||
if (
|
||||
req.method !== 'GET' || req.headers.upgrade.toLowerCase() !== 'websocket' ||
|
||||
req.method !== 'GET' || upgrade === undefined ||
|
||||
upgrade.toLowerCase() !== 'websocket' ||
|
||||
!req.headers['sec-websocket-key'] || (version !== 8 && version !== 13) ||
|
||||
!this.shouldHandle(req)
|
||||
) {
|
||||
@ -364,6 +366,6 @@ function abortHandshake (socket, code, message, headers) {
|
||||
* characters from both its beginning and end
|
||||
* @private
|
||||
*/
|
||||
function trim(str) {
|
||||
function trim (str) {
|
||||
return str.trim();
|
||||
}
|
||||
|
Reference in New Issue
Block a user