[Modify] Rename it
This commit is contained in:
parent
adb7082cd5
commit
d5cd068d16
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user