From 80d3d0a6dabce45e363da087dfd71beea41774d0 Mon Sep 17 00:00:00 2001 From: Stefan Reitshamer Date: Mon, 23 Jan 2012 11:03:40 -0500 Subject: [PATCH] cast NSHTTPURLResponse --- http/URLConnection.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/URLConnection.m b/http/URLConnection.m index d0a93d6..122ff4e 100644 --- a/http/URLConnection.m +++ b/http/URLConnection.m @@ -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 {