cast NSHTTPURLResponse

This commit is contained in:
Stefan Reitshamer 2012-01-23 11:03:40 -05:00
parent f907244695
commit 80d3d0a6da

View file

@ -244,7 +244,7 @@ static NSString *RUN_LOOP_MODE = @"HTTPConnectionRunLoopMode";
- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response {
if ([response isKindOfClass:[NSHTTPURLResponse class]]) {
[httpURLResponse release];
httpURLResponse = [response retain];
httpURLResponse = (NSHTTPURLResponse *)[response retain];
}
}
- (void)connection:(NSURLConnection *)connection didSendBodyData:(NSInteger)bytesWritten totalBytesWritten:(NSInteger)totalBytesWritten totalBytesExpectedToWrite:(NSInteger)totalBytesExpectedToWrite {