diff --git a/websocket-sharp/HttpRequest.cs b/websocket-sharp/HttpRequest.cs index d608e68a..b75475ff 100644 --- a/websocket-sharp/HttpRequest.cs +++ b/websocket-sharp/HttpRequest.cs @@ -67,11 +67,11 @@ namespace WebSocketSharp #region Public Properties - public AuthenticationResponse AuthResponse { + public AuthenticationResponse AuthenticationResponse { get { - var auth = Headers["Authorization"]; - return auth != null && auth.Length > 0 - ? AuthenticationResponse.Parse (auth) + var res = Headers["Authorization"]; + return res != null && res.Length > 0 + ? AuthenticationResponse.Parse (res) : null; } } diff --git a/websocket-sharp/Net/WebSockets/TcpListenerWebSocketContext.cs b/websocket-sharp/Net/WebSockets/TcpListenerWebSocketContext.cs index 0d34ffa2..cb097480 100644 --- a/websocket-sharp/Net/WebSockets/TcpListenerWebSocketContext.cs +++ b/websocket-sharp/Net/WebSockets/TcpListenerWebSocketContext.cs @@ -337,7 +337,7 @@ namespace WebSocketSharp.Net.WebSockets string realm, Func credentialsFinder) { - var authRes = _request.AuthResponse; + var authRes = _request.AuthenticationResponse; if (authRes == null) return;