Skip to content

Commit

Permalink
Add CFNetwork header to make iphone targets build out of the box in r…
Browse files Browse the repository at this point in the history
…elease configuration

Use removeItemAtPath rather than removeFileAtPath to get rid of warning when targeting iphone
  • Loading branch information
pokeb committed Dec 20, 2008
1 parent f116d17 commit 8091283
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions ASIHTTPRequest.h
Expand Up @@ -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,
Expand Down
6 changes: 3 additions & 3 deletions ASIHTTPRequest.m
Expand Up @@ -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];
Expand Down

0 comments on commit 8091283

Please sign in to comment.