mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-27 22:41:10 +08:00
Return nil from needNewBodyStream: to avoid weirdness with connections being revived. refs #335
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user