Skip to content

Commit

Permalink
update example apps
Browse files Browse the repository at this point in the history
Signed-off-by: Rafal Augustyniak <[email protected]>
  • Loading branch information
Augustyniak committed Jun 28, 2022
1 parent d45fa9f commit 42b38bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/objective-c/hello_world/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ - (void)performRequest {
NSString *message = [NSString stringWithFormat:@"received headers with status %i", statusCode];

NSMutableString *headerMessage = [NSMutableString new];
for (NSString *name in headers.caseSensitiveHeaders()) {
for (NSString *name in headers.caseSensitiveHeaders) {
if ([self.filteredHeaders containsObject:name]) {
NSArray<NSString *> *values = headers.caseSensitiveHeaders()[name];
NSArray<NSString *> *values = headers.caseSensitiveHeaders[name];
NSString *joined = [values componentsJoinedByString:@", "];
NSString *pair = [NSString stringWithFormat:@"%@: %@\n", name, joined];
[headerMessage appendString:pair];
Expand Down

0 comments on commit 42b38bf

Please sign in to comment.