We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9968b3 commit ee07745Copy full SHA for ee07745
Leanplum-SDK/Classes/LeanplumRequest.m
@@ -366,10 +366,9 @@ - (void)sendNow:(BOOL)async
366
}
367
finished = YES;
368
LP_TRY
369
- if (completedOperation.HTTPStatusCode == 408
370
- || completedOperation.HTTPStatusCode == 502
371
- || completedOperation.HTTPStatusCode == 503
372
- || completedOperation.HTTPStatusCode == 504
+ NSInteger httpStatusCode = completedOperation.HTTPStatusCode;
+ if (httpStatusCode == 408
+ || (httpStatusCode >= 500 && httpStatusCode < 600)
373
|| err.code == kCFURLErrorCannotConnectToHost
374
|| err.code == kCFURLErrorDNSLookupFailed
375
|| err.code == kCFURLErrorNotConnectedToInternet
0 commit comments