From 5fb4676a436b3172355e1aee4ddcdaf24737bda6 Mon Sep 17 00:00:00 2001 From: sta Date: Mon, 5 Jun 2017 17:53:56 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Server/HttpServer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Server/HttpServer.cs b/websocket-sharp/Server/HttpServer.cs index e04d202c..6e07a473 100644 --- a/websocket-sharp/Server/HttpServer.cs +++ b/websocket-sharp/Server/HttpServer.cs @@ -526,7 +526,7 @@ namespace WebSocketSharp.Server /// public string RootPath { get { - return _rootPath != null && _rootPath.Length > 0 ? _rootPath : (_rootPath = "./Public"); + return _rootPath; } set { @@ -808,6 +808,7 @@ namespace WebSocketSharp.Server String.Format ("http{0}://{1}:{2}/", secure ? "s" : "", _hostname, port)); _log = _listener.Log; + _rootPath = "./Public"; _services = new WebSocketServiceManager (_log); _sync = new object ();