From f0b53b9e7f0dd4fd401d8f60fe959b6551c4b552 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 23 Apr 2016 16:08:05 +0900 Subject: [PATCH] [Modify] Polish it Return directly the value. --- websocket-sharp/Net/HttpListener.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/websocket-sharp/Net/HttpListener.cs b/websocket-sharp/Net/HttpListener.cs index e6edc673..07d02a5c 100644 --- a/websocket-sharp/Net/HttpListener.cs +++ b/websocket-sharp/Net/HttpListener.cs @@ -315,9 +315,13 @@ namespace WebSocketSharp.Net /// /// Gets or sets the name of the realm associated with the listener. /// + /// + /// If this property is or empty, "SECRET AREA" will be used as + /// the name of the realm. + /// /// /// A that represents the name of the realm. The default value is - /// "SECRET AREA". + /// . /// /// /// This listener has been closed. @@ -325,7 +329,7 @@ namespace WebSocketSharp.Net public string Realm { get { CheckDisposed (); - return _realm != null && _realm.Length > 0 ? _realm : (_realm = "SECRET AREA"); + return _realm; } set {