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:
John Firebaugh
2015-03-06 16:48:05 -08:00
parent 682cc28340
commit a5998dc59b
2 changed files with 3 additions and 4 deletions

View File

@@ -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;
}