[Modify] Rename it

This commit is contained in:
sta 2017-06-22 17:01:52 +09:00
parent adb7082cd5
commit d5cd068d16

View File

@ -56,16 +56,18 @@ namespace WebSocketSharp.Server
#region Private Fields #region Private Fields
private HttpListenerContext _context; private HttpListenerContext _context;
private string _rootPath; private string _docRootPath;
#endregion #endregion
#region Internal Constructors #region Internal Constructors
internal HttpRequestEventArgs (HttpListenerContext context, string rootPath) internal HttpRequestEventArgs (
HttpListenerContext context, string documentRootPath
)
{ {
_context = context; _context = context;
_rootPath = rootPath; _docRootPath = documentRootPath;
} }
#endregion #endregion
@ -104,8 +106,8 @@ namespace WebSocketSharp.Server
{ {
childPath = childPath.TrimStart ('/', '\\'); childPath = childPath.TrimStart ('/', '\\');
var buff = new StringBuilder (_rootPath, 32); var buff = new StringBuilder (_docRootPath, 32);
if (_rootPath == "/" || _rootPath == "\\") if (_docRootPath == "/" || _docRootPath == "\\")
buff.Append (childPath); buff.Append (childPath);
else else
buff.AppendFormat ("/{0}", childPath); buff.AppendFormat ("/{0}", childPath);