mirror of
https://github.com/amark/gun.git
synced 2026-02-16 00:23:58 +00:00
Check request for 'upgrade' being set
along with the path check, should check that the request is an upgrade before assuming to do anything with it really.
This commit is contained in:
@@ -67,6 +67,7 @@
|
|||||||
gun.wsp.server = gun.wsp.server || function(req, res, next){ // http
|
gun.wsp.server = gun.wsp.server || function(req, res, next){ // http
|
||||||
next = next || function(){};
|
next = next || function(){};
|
||||||
if(!req || !res){ return next(), false }
|
if(!req || !res){ return next(), false }
|
||||||
|
if(!req.upgrade){ return next(), false }
|
||||||
if(!req.url){ return next(), false }
|
if(!req.url){ return next(), false }
|
||||||
if(!req.method){ return next(), false }
|
if(!req.method){ return next(), false }
|
||||||
var msg = {};
|
var msg = {};
|
||||||
|
|||||||
Reference in New Issue
Block a user