- Timestamp:
- Nov 16, 2018, 10:38:46 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/Handlers/StaticHandler.cs
r325 r332 13 13 string moduleName = null) : base (moduleName) { 14 14 this.staticPart = staticPart; 15 datapath = filePath ;15 datapath = filePath + (filePath [filePath.Length - 1] == '/' ? "" : "/"); 16 16 this.cache = cache; 17 17 this.logMissingFiles = logMissingFiles; … … 22 22 string fn = req.Url.AbsolutePath.Remove (0, staticPart.Length); 23 23 24 byte[] content = cache.GetFileContent (datapath + "/" +fn);24 byte[] content = cache.GetFileContent (datapath + fn); 25 25 26 26 if (content != null) { … … 31 31 resp.StatusCode = (int) HttpStatusCode.NotFound; 32 32 if (logMissingFiles) { 33 Log.Out ("Web:Static:FileNotFound: \"" + req.Url.AbsolutePath + "\" @ \"" + datapath + "/" + 34 req.Url.AbsolutePath.Remove (0, staticPart.Length) + "\""); 33 Log.Out ("Web:Static:FileNotFound: \"" + req.Url.AbsolutePath + "\" @ \"" + datapath + fn + "\""); 35 34 } 36 35 }
Note:
See TracChangeset
for help on using the changeset viewer.