Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Changing allHTTPHeaderFields to allHeaderFields (thanks, @Prothmaler)
  • Loading branch information
mattt committed Aug 15, 2012
1 parent 45c31f9 commit 2d14aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AFHTTPRequestOperationLogger.m
Expand Up @@ -79,7 +79,7 @@ - (void)HTTPOperationDidStart:(NSNotification *)notification {

switch (self.level) {
case AFLoggerLevelDebug:
NSLog(@"%@ '%@': %@ %@", [operation.request HTTPMethod], [[operation.request URL] absoluteString], [operation.request allHTTPHeaderFields], body);
NSLog(@"%@ '%@': %@ %@", [operation.request HTTPMethod], [[operation.request URL] absoluteString], [operation.request allHeaderFields], body);
break;
case AFLoggerLevelInfo:
NSLog(@"%@ '%@'", [operation.request HTTPMethod], [[operation.request URL] absoluteString]);
Expand Down Expand Up @@ -109,7 +109,7 @@ - (void)HTTPOperationDidFinish:(NSNotification *)notification {
} else {
switch (self.level) {
case AFLoggerLevelDebug:
NSLog(@"%ld '%@': %@ %@", (long)[operation.response statusCode], [[operation.response URL] absoluteString],operation.response.allHTTPHeaderFields, operation.responseString);
NSLog(@"%ld '%@': %@ %@", (long)[operation.response statusCode], [[operation.response URL] absoluteString],operation.response.allHeaderFields, operation.responseString);
break;
case AFLoggerLevelInfo:
NSLog(@"%ld '%@'", (long)[operation.response statusCode], [[operation.response URL] absoluteString]);
Expand Down

2 comments on commit 2d14aa1

@krzyzanowskim
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-[NSMutableURLRequest allHeaderFields]: unrecognized selector sent to instance 0x88cbcb0

@mattt
Copy link
Contributor Author

@mattt mattt commented on 2d14aa1 Aug 16, 2012

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

D'oh. Fat-fingered that one. Fixed in d2cecb1.

Please sign in to comment.