Fix conditional in normalizeSourceURL
The existing conditional would always be false, since it was comparing a url that begins with "mapbox://". In fact no conditional is necessary; the secure TileJSON resource should always be requested.
This commit is contained in:
@@ -26,8 +26,7 @@ std::string normalizeSourceURL(const std::string& url, const std::string& access
|
||||
|
||||
// TileJSON requests need a secure flag appended to their URLs so
|
||||
// that the server knows to send SSL-ified resource references.
|
||||
if (url.compare(0, 5, "https") == 0)
|
||||
result += "&secure";
|
||||
result += "&secure";
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user