Skip to content

Commit

Permalink
Only normalize canonicalized mapbox tile URLs
Browse files Browse the repository at this point in the history
fix #9259
  • Loading branch information
ansis committed Feb 6, 2020
1 parent d7c6e37 commit fda1238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/mapbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class RequestManager {
this._createSkuToken();
}

if (tileURL && !isMapboxURL(tileURL) && !isMapboxHTTPURL(tileURL)) return tileURL;
if (tileURL && !isMapboxURL(tileURL)) return tileURL;

const urlObject = parseUrl(tileURL);
const imageExtensionRe = /(\.(png|jpg)\d*)(?=$)/;
Expand Down

0 comments on commit fda1238

Please sign in to comment.