summaryrefslogtreecommitdiff
path: root/platform/darwin/src/http_file_source.mm
diff options
context:
space:
mode:
authorFabian Guerra <fabian.guerra@mapbox.com>2019-05-14 10:34:46 -0700
committerFabian Guerra Soto <fabian.guerra@mapbox.com>2019-05-16 11:13:39 -0700
commit65990b3e2574fc52c0c382adf818367580443c6b (patch)
treeb351c9b39bb8a6d19b1a619bec31a1ec21b52e6a /platform/darwin/src/http_file_source.mm
parent517e8f8ae585763fd0bb026ee493170e9e9d2bed (diff)
downloadqtlocation-mapboxgl-65990b3e2574fc52c0c382adf818367580443c6b.tar.gz
[ios] Rename performance's metrics variable names.android-v7.5.0-beta.1
Diffstat (limited to 'platform/darwin/src/http_file_source.mm')
-rw-r--r--platform/darwin/src/http_file_source.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/darwin/src/http_file_source.mm b/platform/darwin/src/http_file_source.mm
index 26f6149b3f..20b9ead7af 100644
--- a/platform/darwin/src/http_file_source.mm
+++ b/platform/darwin/src/http_file_source.mm
@@ -242,10 +242,10 @@ std::unique_ptr<AsyncRequest> HTTPFileSource::request(const Resource& resource,
dataTaskWithRequest:req
completionHandler:^(NSData* data, NSURLResponse* res, NSError* error) {
if (error && [error code] == NSURLErrorCancelled) {
- [[MGLNetworkConfiguration sharedManager] cancelDownloadEvent:res.URL.relativePath];
+ [[MGLNetworkConfiguration sharedManager] cancelDownloadEventForResponse:res];
return;
}
- [[MGLNetworkConfiguration sharedManager] stopDownloadEvent:res.URL.relativePath];
+ [[MGLNetworkConfiguration sharedManager] stopDownloadEventForResponse:res];
Response response;
using Error = Response::Error;