Refactored TcpListenerWebSocketContext.cs

This commit is contained in:
sta
2014-07-20 22:04:44 +09:00
parent 1ef05fe0c3
commit 7cb6499c3a
3 changed files with 27 additions and 23 deletions

View File

@@ -546,7 +546,7 @@ namespace WebSocketSharp.Server
var header = context.Headers ["Authorization"];
if (header == null || !header.StartsWith (expected, StringComparison.OrdinalIgnoreCase)) {
context.SendAuthChallenge (challenge);
context.SendAuthenticationChallenge (challenge);
return auth ();
}
@@ -554,7 +554,7 @@ namespace WebSocketSharp.Server
if (context.IsAuthenticated)
return true;
context.SendAuthChallenge (challenge);
context.SendAuthenticationChallenge (challenge);
return auth ();
};