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 cd8e799 commit b8d6dcfCopy full SHA for b8d6dcf
iOS_SDK/OneSignalSDK/OneSignalCore/Source/API/OneSignalClient.m
@@ -197,7 +197,7 @@ - (void)handleJSONNSURLResponse:(NSURLResponse*)response data:(NSData*)data erro
197
198
NSHTTPURLResponse* HTTPResponse = (NSHTTPURLResponse*)response;
199
NSInteger statusCode = [HTTPResponse statusCode];
200
- NSDictionary *headers = [HTTPResponse allHeaderFields];
+ NSDictionary *headers = [HTTPResponse allHeaderFields] ?: @{};
201
NSError* jsonError = nil;
202
NSMutableDictionary* innerJson;
203
0 commit comments