Skip to content

Commit 4d9ca2c

Browse files
Map NSURLErrorDataNotAllowed to OFFLINE_ERROR (#1176)
This is needed to correctly handle the full flight mode. Resolves: OLPSUP-13674 Signed-off-by: Mykhailo Kuchma <[email protected]>
1 parent 0fda478 commit 4d9ca2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

olp-cpp-sdk-core/src/http/ios/OLPNetworkIOS.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2019 HERE Europe B.V.
2+
* Copyright (C) 2019-2021 HERE Europe B.V.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -95,6 +95,7 @@
9595
case NSURLErrorCannotFindHost:
9696
return ErrorCode::INVALID_URL_ERROR;
9797
case NSURLErrorNotConnectedToInternet:
98+
case NSURLErrorDataNotAllowed:
9899
return ErrorCode::OFFLINE_ERROR;
99100
case NSURLErrorTimedOut:
100101
return ErrorCode::TIMEOUT_ERROR;

0 commit comments

Comments
 (0)