[Modify] Polish it

This commit is contained in:
sta 2021-08-01 22:04:18 +09:00
parent b6e8d76df1
commit 9cd89f828b

View File

@ -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;
}