[Modify] Polish it
This commit is contained in:
parent
b6e8d76df1
commit
9cd89f828b
@ -197,9 +197,10 @@ namespace WebSocketSharp.Server
|
||||
if (path.IndexOf ("..") > -1)
|
||||
throw new ArgumentException ("It contains '..'.", "path");
|
||||
|
||||
path = createFilePath (path);
|
||||
byte[] contents;
|
||||
|
||||
tryReadFile (createFilePath (path), out contents);
|
||||
tryReadFile (path, out contents);
|
||||
|
||||
return contents;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user