Merge branch 'master' of github.com:AFNetworking/AFNetworking
Conflicts: AFNetworking/AFHTTPClient.m
This commit is contained in:
commit
43e13be0ba
1 changed files with 5 additions and 1 deletions
|
|
@ -238,6 +238,10 @@ static NSString * AFPropertyListStringFromParameters(NSDictionary *parameters) {
|
|||
return nil;
|
||||
}
|
||||
|
||||
if (!url) {
|
||||
[NSException raise:@"-[AFHTTPClient initWithBaseURL:] nil URL" format:@"`url` must not be nil"];
|
||||
}
|
||||
|
||||
// Ensure terminal slash for baseURL path, so that NSURL +URLWithString:relativeToURL: works as expected
|
||||
if ([[url path] length] > 0 && ![[url absoluteString] hasSuffix:@"/"]) {
|
||||
url = [url URLByAppendingPathComponent:@""];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue