Skip to content

Commit

Permalink
Only normalize canonicalized mapbox tile URLs (#9268)
Browse files Browse the repository at this point in the history
fix #9259
  • Loading branch information
ansis authored Feb 11, 2020
1 parent c9f09b0 commit 3942c0a
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 3942c0a

Please sign in to comment.