[Modify] Polish it

This commit is contained in:
sta 2016-05-20 15:21:20 +09:00
parent ab29d4db4f
commit f4d76318f6

View File

@ -366,7 +366,7 @@ namespace WebSocketSharp.Net.WebSockets
if (scheme == AuthenticationSchemes.Anonymous) if (scheme == AuthenticationSchemes.Anonymous)
return true; return true;
if (scheme != AuthenticationSchemes.Basic && scheme != AuthenticationSchemes.Digest) { if (scheme == AuthenticationSchemes.None) {
Close (HttpStatusCode.Forbidden); Close (HttpStatusCode.Forbidden);
return false; return false;
} }