Merged PR 3242: better base url
better base url
This commit is contained in:
Родитель
cbcd5f327c
Коммит
8b8654d7bb
|
@ -58,6 +58,9 @@ typedef void(^PORequestCompletionBlock)(NSURLResponse *response, id responseObje
|
|||
|
||||
self = [super init];
|
||||
if (self) {
|
||||
if(![endpoint hasSuffix:@"/"]){
|
||||
endpoint = [endpoint stringByAppendingString:@"/"];
|
||||
}
|
||||
self.endpoint = endpoint;
|
||||
self.subscriptionKey = key;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче