Permalink
Browse files

Fixing allHeaderFields vs. allHTTPHeaderFields for NSURLRequest

  • Loading branch information...
1 parent 2d14aa1 commit d2cecb1d08268c2115bec5ffa255b47076b5d4c8 @mattt mattt committed Aug 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 AFHTTPRequestOperationLogger.m
@@ -79,7 +79,7 @@ - (void)HTTPOperationDidStart:(NSNotification *)notification {
switch (self.level) {
case AFLoggerLevelDebug:
- NSLog(@"%@ '%@': %@ %@", [operation.request HTTPMethod], [[operation.request URL] absoluteString], [operation.request allHeaderFields], body);
+ NSLog(@"%@ '%@': %@ %@", [operation.request HTTPMethod], [[operation.request URL] absoluteString], [operation.request allHTTPHeaderFields], body);
break;
case AFLoggerLevelInfo:
NSLog(@"%@ '%@'", [operation.request HTTPMethod], [[operation.request URL] absoluteString]);
@@ -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.allHeaderFields, 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]);

0 comments on commit d2cecb1

Please sign in to comment.