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

Commit

Permalink
Re-ordering NSURLConnectionDelegate method implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
mattt committed Jan 6, 2013
1 parent 23d3bd5 commit b66c21b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions AFNetworking/AFURLConnectionOperation.m
Expand Up @@ -573,6 +573,16 @@ - (void)connection:(NSURLConnection *)connection
}
}

- (NSInputStream *)connection:(NSURLConnection *)connection
needNewBodyStream:(NSURLRequest *)request
{
if ([request.HTTPBodyStream conformsToProtocol:@protocol(NSCopying)]) {
return [request.HTTPBodyStream copy];
}

return nil;
}

- (NSURLRequest *)connection:(NSURLConnection *)connection
willSendRequest:(NSURLRequest *)request
redirectResponse:(NSURLResponse *)redirectResponse
Expand Down Expand Up @@ -657,16 +667,6 @@ - (NSCachedURLResponse *)connection:(NSURLConnection *)connection
}
}

- (NSInputStream *)connection:(NSURLConnection *)connection
needNewBodyStream:(NSURLRequest *)request
{
if ([request.HTTPBodyStream conformsToProtocol:@protocol(NSCopying)]) {
return [request.HTTPBodyStream copy];
}

return nil;
}

#pragma mark - NSCoding

- (id)initWithCoder:(NSCoder *)aDecoder {
Expand Down

0 comments on commit b66c21b

Please sign in to comment.