Skip to content

Commit

Permalink
Fixed profile dashboard crash when using file nameless routes
Browse files Browse the repository at this point in the history
refs
#22 (comment)
346
  • Loading branch information
brianreavis committed Oct 10, 2017
1 parent fd4da02 commit c7d3375
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/TileServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,8 @@ TileServer.prototype.profile = function(plugin_id, req) {
return function(err, _data) {
var dur = Date.now() - start;
// layer::file.ext::cache#1::z12
var key = [req.layer, req.filename, plugin_id, 'z'+req.z].join('::');
var filenameKey = req.hasFilename ? req.filename : '*' + req.filename.substring(1);
var key = [req.layer, filenameKey, plugin_id, 'z' + req.z].join('::');
if (!self.profiles[key]) self.profiles[key] = {};
var data = self.profiles[key];

Expand Down

0 comments on commit c7d3375

Please sign in to comment.