From f760eabf32157dda7b18f46d079bcc68dc44d314 Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 15 Jun 2017 14:43:47 +0900 Subject: [PATCH] [Modify] Replace it --- websocket-sharp/Server/HttpServer.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/websocket-sharp/Server/HttpServer.cs b/websocket-sharp/Server/HttpServer.cs index d64ce2e5..e49b0d7a 100644 --- a/websocket-sharp/Server/HttpServer.cs +++ b/websocket-sharp/Server/HttpServer.cs @@ -1352,10 +1352,7 @@ namespace WebSocketSharp.Server if (path.Length == 0) throw new ArgumentException ("An empty string.", "path"); - path = RootPath + path; - if (_windows) - path = path.Replace ("/", "\\"); - + path = createFilePath (path); return File.Exists (path) ? File.ReadAllBytes (path) : null; }