File tree 1 file changed +6
-1
lines changed
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
490
490
} else {
491
491
NSInteger statusCode = response.statusCode ;
492
492
NSData *rawData = response.data ;
493
+ NSDictionary *headers = response.HTTPHeaders ;
493
494
494
495
NSError *err;
495
496
NSArray *data;
497
+
498
+
496
499
497
500
// Check if returned data is a valid JSON
498
501
// != nil returned if the rawdata is not a valid JSON
@@ -514,9 +517,11 @@ - (NSDictionary *) getConfigForProvider:(NSString *)name
514
517
};
515
518
callback (@[errResp]);
516
519
} else {
520
+
517
521
NSDictionary *resp = @{
518
522
@" status" : @(statusCode),
519
- @" data" : data != nil ? data : @[]
523
+ @" data" : data != nil ? data : @[],
524
+ @" headers" : headers,
520
525
};
521
526
callback (@[[NSNull null ], resp]);
522
527
}
You can’t perform that action at this time.
0 commit comments