File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -490,9 +490,12 @@ - (NSDictionary *) getConfigForProvider:(NSString *)name
490490 } else {
491491 NSInteger statusCode = response.statusCode ;
492492 NSData *rawData = response.data ;
493+ NSDictionary *headers = response.HTTPHeaders ;
493494
494495 NSError *err;
495496 NSArray *data;
497+
498+
496499
497500 // Check if returned data is a valid JSON
498501 // != nil returned if the rawdata is not a valid JSON
@@ -514,9 +517,11 @@ - (NSDictionary *) getConfigForProvider:(NSString *)name
514517 };
515518 callback (@[errResp]);
516519 } else {
520+
517521 NSDictionary *resp = @{
518522 @" status" : @(statusCode),
519- @" data" : data != nil ? data : @[]
523+ @" data" : data != nil ? data : @[],
524+ @" headers" : headers,
520525 };
521526 callback (@[[NSNull null ], resp]);
522527 }
You can’t perform that action at this time.
0 commit comments