mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-24 04:46:01 +08:00
Revert those calls to the nonexistent NSURL-originalPath method back to -path
This commit is contained in:
@@ -328,7 +328,7 @@ RKRequestMethod RKRequestMethodTypeFromName(NSString *methodName) {
|
||||
parameters = [_URL queryParameters];
|
||||
|
||||
if (self.method == RKRequestMethodPUT)
|
||||
echo = [GCOAuth URLRequestForPath:[_URL originalPath]
|
||||
echo = [GCOAuth URLRequestForPath:[_URL path]
|
||||
PUTParameters:parameters
|
||||
scheme:[_URL scheme]
|
||||
host:[_URL hostAndPort]
|
||||
@@ -337,7 +337,7 @@ RKRequestMethod RKRequestMethodTypeFromName(NSString *methodName) {
|
||||
accessToken:self.OAuth1AccessToken
|
||||
tokenSecret:self.OAuth1AccessTokenSecret];
|
||||
else if (self.method == RKRequestMethodPOST)
|
||||
echo = [GCOAuth URLRequestForPath:[_URL originalPath]
|
||||
echo = [GCOAuth URLRequestForPath:[_URL path]
|
||||
POSTParameters:parameters
|
||||
scheme:[_URL scheme]
|
||||
host:[_URL hostAndPort]
|
||||
@@ -346,7 +346,7 @@ RKRequestMethod RKRequestMethodTypeFromName(NSString *methodName) {
|
||||
accessToken:self.OAuth1AccessToken
|
||||
tokenSecret:self.OAuth1AccessTokenSecret];
|
||||
else
|
||||
echo = [GCOAuth URLRequestForPath:[_URL originalPath]
|
||||
echo = [GCOAuth URLRequestForPath:[_URL path]
|
||||
GETParameters:[_URL queryParameters]
|
||||
scheme:[_URL scheme]
|
||||
host:[_URL hostAndPort]
|
||||
|
||||
Reference in New Issue
Block a user