Ben Copsey

Add CFNetwork header to make iphone targets build out of the box in release configuration

Use removeItemAtPath rather than removeFileAtPath to get rid of warning when targeting iphone
... ... @@ -10,6 +10,7 @@
// Portions are based on the ImageClient example from Apple:
// See: http://developer.apple.com/samplecode/ImageClient/listing37.html
#import <CFNetwork/CFNetwork.h>
typedef enum _ASINetworkErrorType {
ASIConnectionFailureErrorType = 1,
... ...
... ... @@ -386,11 +386,11 @@ static NSError *ASIUnableToCreateRequestError;
if (receivedData) {
[self setReceivedData:nil];
// If we were downloading to a file, let's remove it
// If we were downloading to a file, let's remove it
} else if (downloadDestinationPath) {
[outputStream close];
[[NSFileManager defaultManager] removeFileAtPath:downloadDestinationPath handler:nil];
[[NSFileManager defaultManager] removeItemAtPath:downloadDestinationPath error:NULL];
}
[self setResponseHeaders:nil];
... ...