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.
2 parents cb1502e + b8d6dcf commit 73ae2efCopy full SHA for 73ae2ef
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