[Modify] Polish it

master
sta 10 years ago
parent ab29d4db4f
commit f4d76318f6

@ -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;
} }

Loading…
Cancel
Save