Permalink
Browse files

Re-ordering NSURLConnectionDelegate method implementations

  • Loading branch information...
1 parent 23d3bd5 commit b66c21b0f298d2e8fd9abaa34e7cedaf319f3902 @mattt mattt committed Jan 6, 2013
Showing with 10 additions and 10 deletions.
  1. +10 −10 AFNetworking/AFURLConnectionOperation.m
@@ -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
@@ -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 {

0 comments on commit b66c21b

Please sign in to comment.