mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-23 12:27:52 +08:00
Update the mutable URL request when switching out the URL or resourcePath
This commit is contained in:
@@ -521,6 +521,13 @@
|
||||
return resourcePath;
|
||||
}
|
||||
|
||||
- (void)setURL:(NSURL *)URL {
|
||||
[URL retain];
|
||||
[_URL release];
|
||||
_URL = URL;
|
||||
_URLRequest.URL = URL;
|
||||
}
|
||||
|
||||
- (void)setResourcePath:(NSString *)resourcePath {
|
||||
if ([self.URL isKindOfClass:[RKURL class]]) {
|
||||
self.URL = [RKURL URLWithBaseURLString:[(RKURL*)self.URL baseURLString] resourcePath:resourcePath];
|
||||
|
||||
Reference in New Issue
Block a user