[Modify] Polish it

This commit is contained in:
sta 2021-07-31 21:56:05 +09:00
parent 4b23c190f4
commit b6e8d76df1

View File

@ -249,7 +249,9 @@ namespace WebSocketSharp.Server
if (path.IndexOf ("..") > -1)
throw new ArgumentException ("It contains '..'.", "path");
return tryReadFile (createFilePath (path), out contents);
path = createFilePath (path);
return tryReadFile (path, out contents);
}
#endregion