[Modify] Replace it
This commit is contained in:
parent
a586f07359
commit
a79a90f22c
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user