Permalink
Browse files

Stopped the baseURL from being returned as a NSString instead of a NS…

…URL when a using a bucket and base URL
  • Loading branch information...
1 parent 414de06 commit e406b677bf367e1c835ba7b33df93aaccba2a60c @veritech veritech committed May 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 AFAmazonS3Client.m
View
@@ -73,8 +73,8 @@ - (id)initWithAccessKeyID:(NSString *)accessKey
}
- (NSURL *)baseURL {
- if (!_s3_baseURL && self.bucket) {
- return [NSString stringWithFormat:kAFAmazonS3BucketBaseURLFormatString, self.bucket];
+ if (_s3_baseURL && self.bucket) {
+ return [NSURL URLWithString:[NSString stringWithFormat:kAFAmazonS3BucketBaseURLFormatString, self.bucket]];
}
return _s3_baseURL;

0 comments on commit e406b67

Please sign in to comment.