[Modify] Replace it

This commit is contained in:
sta 2017-06-21 15:39:03 +09:00
parent a586f07359
commit a79a90f22c

View File

@ -185,8 +185,10 @@ namespace WebSocketSharp.Server
if (path.IndexOf ("\\\\") > -1)
throw new ArgumentException ("It contains '\\\\'.", "path");
path = createFilePath (path);
return File.Exists (path) ? File.ReadAllBytes (path) : null;
byte[] contents;
tryReadFile (createFilePath (path), out contents);
return contents;
}
/// <summary>