From d5cd068d16bb9c6f05f62bee50236fb366fa33d7 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 22 Jun 2017 17:01:52 +0900 Subject: [PATCH] [Modify] Rename it --- websocket-sharp/Server/HttpRequestEventArgs.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/websocket-sharp/Server/HttpRequestEventArgs.cs b/websocket-sharp/Server/HttpRequestEventArgs.cs index 87a20598..e283a5ff 100644 --- a/websocket-sharp/Server/HttpRequestEventArgs.cs +++ b/websocket-sharp/Server/HttpRequestEventArgs.cs @@ -56,16 +56,18 @@ namespace WebSocketSharp.Server #region Private Fields private HttpListenerContext _context; - private string _rootPath; + private string _docRootPath; #endregion #region Internal Constructors - internal HttpRequestEventArgs (HttpListenerContext context, string rootPath) + internal HttpRequestEventArgs ( + HttpListenerContext context, string documentRootPath + ) { _context = context; - _rootPath = rootPath; + _docRootPath = documentRootPath; } #endregion @@ -104,8 +106,8 @@ namespace WebSocketSharp.Server { childPath = childPath.TrimStart ('/', '\\'); - var buff = new StringBuilder (_rootPath, 32); - if (_rootPath == "/" || _rootPath == "\\") + var buff = new StringBuilder (_docRootPath, 32); + if (_docRootPath == "/" || _docRootPath == "\\") buff.Append (childPath); else buff.AppendFormat ("/{0}", childPath);