- Timestamp:
- Aug 11, 2021, 6:22:03 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/MapRendering/Web/Handlers/StaticHandler.cs
r351 r367 8 8 private readonly string datapath; 9 9 private readonly bool logMissingFiles; 10 private readonly string staticPart;11 10 12 public StaticHandler (string _ staticPart, string _filePath, AbstractCache _cache, bool _logMissingFiles,11 public StaticHandler (string _filePath, AbstractCache _cache, bool _logMissingFiles, 13 12 string _moduleName = null) : base (_moduleName) { 14 staticPart = _staticPart;15 13 datapath = _filePath + (_filePath [_filePath.Length - 1] == '/' ? "" : "/"); 16 14 cache = _cache; … … 20 18 public override void HandleRequest (HttpListenerRequest _req, HttpListenerResponse _resp, WebConnection _user, 21 19 int _permissionLevel) { 22 string fn = _req.Url.AbsolutePath.Remove (0, staticPart.Length);20 string fn = _req.Url.AbsolutePath.Remove (0, urlBasePath.Length); 23 21 24 22 byte[] content = cache.GetFileContent (datapath + fn);
Note:
See TracChangeset
for help on using the changeset viewer.