[Modify] Polish it
This commit is contained in:
parent
03fd189483
commit
bdd1bbde71
@ -1450,6 +1450,7 @@ namespace WebSocketSharp.Server
|
|||||||
throw new ArgumentException ("It contains '..'.", "path");
|
throw new ArgumentException ("It contains '..'.", "path");
|
||||||
|
|
||||||
path = createFilePath (path);
|
path = createFilePath (path);
|
||||||
|
|
||||||
return File.Exists (path) ? File.ReadAllBytes (path) : null;
|
return File.Exists (path) ? File.ReadAllBytes (path) : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user