Return nil from needNewBodyStream: to avoid weirdness with connections being revived. refs #335

This commit is contained in:
Blake Watters
2011-09-07 21:37:11 -04:00
parent feb941d241
commit 2a89404f7d

View File

@@ -196,7 +196,7 @@ extern NSString* cacheURLKey;
- (NSInputStream *)connection:(NSURLConnection *)connection needNewBodyStream:(NSURLRequest *)request {
RKLogWarning(@"RestKit was asked to retransmit a new body stream for a request. Possible connection error or authentication challenge?");
return [self.request.params HTTPBodyStream];
return nil;
}
// In the event that the url request is a post, this delegate method will be called before