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
486486 } else {
487487 NSInteger statusCode = response.statusCode ;
488488 NSData *rawData = response.data ;
489+ NSDictionary *headers = response.HTTPHeaders ;
489490
490491 NSError *err;
491492 NSArray *data;
493+
494+
492495
493496 // Check if returned data is a valid JSON
494497 // != nil returned if the rawdata is not a valid JSON
@@ -510,9 +513,11 @@ - (NSDictionary *) getConfigForProvider:(NSString *)name
510513 };
511514 callback (@[errResp]);
512515 } else {
516+
513517 NSDictionary *resp = @{
514518 @" status" : @(statusCode),
515- @" data" : data != nil ? data : @[]
519+ @" data" : data != nil ? data : @[],
520+ @" headers" : headers,
516521 };
517522 callback (@[[NSNull null ], resp]);
518523 }
You can’t perform that action at this time.
0 commit comments