Fix types: _body should be NSMutableData

This commit is contained in:
Victor Kryukov
2011-06-18 21:47:52 +04:00
committed by Blake Watters
parent b14578436b
commit 9cb4e91ec6

View File

@@ -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;
}