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 @@ -486,9 +486,12 @@ - (NSDictionary *) getConfigForProvider:(NSString *)name
486
486
} else {
487
487
NSInteger statusCode = response.statusCode ;
488
488
NSData *rawData = response.data ;
489
+ NSDictionary *headers = response.HTTPHeaders ;
489
490
490
491
NSError *err;
491
492
NSArray *data;
493
+
494
+
492
495
493
496
// Check if returned data is a valid JSON
494
497
// != nil returned if the rawdata is not a valid JSON
@@ -510,9 +513,11 @@ - (NSDictionary *) getConfigForProvider:(NSString *)name
510
513
};
511
514
callback (@[errResp]);
512
515
} else {
516
+
513
517
NSDictionary *resp = @{
514
518
@" status" : @(statusCode),
515
- @" data" : data != nil ? data : @[]
519
+ @" data" : data != nil ? data : @[],
520
+ @" headers" : headers,
516
521
};
517
522
callback (@[[NSNull null ], resp]);
518
523
}
You can’t perform that action at this time.
0 commit comments