mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-01-12 17:43:34 +08:00
Update baseURLs to fix issues with Twitter example projects. closes #1273
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
[AFNetworkActivityIndicatorManager sharedManager].enabled = YES;
|
||||
|
||||
// Initialize HTTPClient
|
||||
NSURL *baseURL = [NSURL URLWithString:@"http://twitter.com"];
|
||||
NSURL *baseURL = [NSURL URLWithString:@"https://twitter.com"];
|
||||
AFHTTPClient* client = [[AFHTTPClient alloc] initWithBaseURL:baseURL];
|
||||
//we want to work with JSON-Data
|
||||
[client setDefaultHeader:@"Accept" value:RKMIMETypeJSON];
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
|
||||
{
|
||||
// Initialize RestKit
|
||||
NSURL *baseURL = [NSURL URLWithString:@"http://twitter.com"];
|
||||
NSURL *baseURL = [NSURL URLWithString:@"https://twitter.com"];
|
||||
RKObjectManager *objectManager = [RKObjectManager managerWithBaseURL:baseURL];
|
||||
|
||||
// Enable Activity Indicator Spinner
|
||||
|
||||
Reference in New Issue
Block a user