[Modify] Replace it
This commit is contained in:
parent
1c709dde7d
commit
f760eabf32
@ -1352,10 +1352,7 @@ namespace WebSocketSharp.Server
|
|||||||
if (path.Length == 0)
|
if (path.Length == 0)
|
||||||
throw new ArgumentException ("An empty string.", "path");
|
throw new ArgumentException ("An empty string.", "path");
|
||||||
|
|
||||||
path = RootPath + path;
|
path = createFilePath (path);
|
||||||
if (_windows)
|
|
||||||
path = path.Replace ("/", "\\");
|
|
||||||
|
|
||||||
return File.Exists (path) ? File.ReadAllBytes (path) : null;
|
return File.Exists (path) ? File.ReadAllBytes (path) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user