Skip to content

Commit

Permalink
Merge 676b098 into 763f27c
Browse files Browse the repository at this point in the history
  • Loading branch information
nyurik committed Jan 21, 2016
2 parents 763f27c + 676b098 commit 4b3a3b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/tilelive.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ tilelive.load = function(uri, callback) {

if (typeof uri === 'string') {
uri = url.parse(uri, true);
uri.pathname = qs.unescape(uri.pathname);
if (uri.pathname) {
uri.pathname = qs.unescape(uri.pathname);
}
}

// Handle uris in the format /path/to/dir?id=bar
Expand Down

0 comments on commit 4b3a3b9

Please sign in to comment.