From e5aab73b604cb723742ead8a7762e7c8430853bf Mon Sep 17 00:00:00 2001 From: Jason Wray Date: Thu, 1 Oct 2015 11:06:11 -0400 Subject: [PATCH] [core] only check for mapbox:// at the start of the failed request's URL --- src/mbgl/map/map_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mbgl/map/map_context.cpp b/src/mbgl/map/map_context.cpp index 7647d027f..f24216bb4 100644 --- a/src/mbgl/map/map_context.cpp +++ b/src/mbgl/map/map_context.cpp @@ -118,7 +118,7 @@ void MapContext::setStyleURL(const std::string& url) { if (res.status == Response::Successful) { loadStyleJSON(res.data, base); - } else if (res.status == Response::NotFound && (styleURL.find("mapbox://") != std::string::npos)) { + } else if (res.status == Response::NotFound && styleURL.find("mapbox://") == 0) { Log::Error(Event::Setup, "style %s could not be found or is an incompatible legacy map or style", styleURL.c_str()); } else { Log::Error(Event::Setup, "loading style failed: %s", res.message.c_str());