From 42bc2b52cdb47bfbaccf1946e9f837ae09356242 Mon Sep 17 00:00:00 2001 From: sta Date: Tue, 15 Jul 2014 16:49:24 +0900 Subject: [PATCH] Renamed AuthResponse property to AuthenticationResponse property --- websocket-sharp/HttpRequest.cs | 8 ++++---- .../Net/WebSockets/TcpListenerWebSocketContext.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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;