mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-19 23:50:11 +08:00
Fix types: _body should be NSMutableData
This commit is contained in:
committed by
Blake Watters
parent
b14578436b
commit
9cb4e91ec6
@@ -51,8 +51,7 @@ extern NSString* cacheURLKey;
|
||||
self = [self initWithRequest:request];
|
||||
if (self) {
|
||||
[_body release];
|
||||
_body = nil;
|
||||
_body = [body retain];
|
||||
_body = [[NSMutableData dataWithData:body] retain];
|
||||
_responseHeaders = [headers retain];
|
||||
}
|
||||
|
||||
@@ -67,7 +66,7 @@ extern NSString* cacheURLKey;
|
||||
_request = request;
|
||||
_httpURLResponse = [URLResponse retain];
|
||||
_failureError = [error retain];
|
||||
_body = [body retain];
|
||||
_body = [[NSMutableData dataWithData:body] retain];
|
||||
_loading = NO;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user