Permalink
Browse files

Add CFNetwork header to make iphone targets build out of the box in r…

…elease configuration

Use removeItemAtPath rather than removeFileAtPath to get rid of warning when targeting iphone
  • Loading branch information...
1 parent f116d17 commit 8091283dfd0d80bc8c04c7789b7a7ee5ef97f7e6 @pokeb committed Dec 20, 2008
Showing with 4 additions and 3 deletions.
  1. +1 −0 ASIHTTPRequest.h
  2. +3 −3 ASIHTTPRequest.m
View
@@ -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,
View
@@ -386,11 +386,11 @@ - (void)cancelLoad
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];

0 comments on commit 8091283

Please sign in to comment.