[Modify] Polish it
This commit is contained in:
@@ -413,6 +413,7 @@ namespace WebSocketSharp.Server
|
|||||||
if (_cookiesValidator != null) {
|
if (_cookiesValidator != null) {
|
||||||
var req = context.CookieCollection;
|
var req = context.CookieCollection;
|
||||||
var res = context.WebSocket.CookieCollection;
|
var res = context.WebSocket.CookieCollection;
|
||||||
|
|
||||||
if (!_cookiesValidator (req, res))
|
if (!_cookiesValidator (req, res))
|
||||||
return "It includes no cookie or an invalid one.";
|
return "It includes no cookie or an invalid one.";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user