diff --git a/websocket-sharp/Server/HttpServer.cs b/websocket-sharp/Server/HttpServer.cs index 16a6a16c..50b89a56 100644 --- a/websocket-sharp/Server/HttpServer.cs +++ b/websocket-sharp/Server/HttpServer.cs @@ -1450,6 +1450,7 @@ namespace WebSocketSharp.Server throw new ArgumentException ("It contains '..'.", "path"); path = createFilePath (path); + return File.Exists (path) ? File.ReadAllBytes (path) : null; }