[Modify] Replace it
This commit is contained in:
parent
a586f07359
commit
a79a90f22c
@ -185,8 +185,10 @@ namespace WebSocketSharp.Server
|
|||||||
if (path.IndexOf ("\\\\") > -1)
|
if (path.IndexOf ("\\\\") > -1)
|
||||||
throw new ArgumentException ("It contains '\\\\'.", "path");
|
throw new ArgumentException ("It contains '\\\\'.", "path");
|
||||||
|
|
||||||
path = createFilePath (path);
|
byte[] contents;
|
||||||
return File.Exists (path) ? File.ReadAllBytes (path) : null;
|
tryReadFile (createFilePath (path), out contents);
|
||||||
|
|
||||||
|
return contents;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user