Skip to content

Commit

Permalink
Merge pull request RestKit#346 from ralfvdz/patch-1
Browse files Browse the repository at this point in the history
Log the body when all data has been received.
  • Loading branch information
blakewatters committed Sep 21, 2011
2 parents 2f91e71 + 41c8d27 commit 947cf37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Network/RKResponse.m
Expand Up @@ -193,11 +193,11 @@ - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSHTTPURLResponse *)response {
RKLogDebug(@"NSHTTPURLResponse Status Code: %d", [response statusCode]);
RKLogDebug(@"Headers: %@", [response allHeaderFields]);
RKLogTrace(@"Read response body: %@", [self bodyAsString]);
_httpURLResponse = [response retain];
}

- (void)connectionDidFinishLoading:(NSURLConnection *)connection {
RKLogTrace(@"Read response body: %@", [self bodyAsString]);
[_request didFinishLoad:self];
}

Expand Down

0 comments on commit 947cf37

Please sign in to comment.