mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-22 20:18:53 +08:00
Merge in @theorm's additions to RKRequest, and re-vendor cocoa-oauth from our fork with @theorm's additions applied
This commit is contained in:
@@ -328,28 +328,28 @@ RKRequestMethod RKRequestMethodTypeFromName(NSString *methodName) {
|
||||
parameters = [_URL queryParameters];
|
||||
|
||||
if (self.method == RKRequestMethodPUT)
|
||||
echo = [GCOAuth URLRequestForPath:[_URL path]
|
||||
echo = [GCOAuth URLRequestForPath:[_URL originalPath]
|
||||
PUTParameters:parameters
|
||||
scheme:[_URL scheme]
|
||||
host:[_URL host]
|
||||
host:[_URL hostAndPort]
|
||||
consumerKey:self.OAuth1ConsumerKey
|
||||
consumerSecret:self.OAuth1ConsumerSecret
|
||||
accessToken:self.OAuth1AccessToken
|
||||
tokenSecret:self.OAuth1AccessTokenSecret];
|
||||
else if (self.method == RKRequestMethodPOST)
|
||||
echo = [GCOAuth URLRequestForPath:[_URL path]
|
||||
echo = [GCOAuth URLRequestForPath:[_URL originalPath]
|
||||
POSTParameters:parameters
|
||||
scheme:[_URL scheme]
|
||||
host:[_URL host]
|
||||
host:[_URL hostAndPort]
|
||||
consumerKey:self.OAuth1ConsumerKey
|
||||
consumerSecret:self.OAuth1ConsumerSecret
|
||||
accessToken:self.OAuth1AccessToken
|
||||
tokenSecret:self.OAuth1AccessTokenSecret];
|
||||
else
|
||||
echo = [GCOAuth URLRequestForPath:[_URL path]
|
||||
echo = [GCOAuth URLRequestForPath:[_URL originalPath]
|
||||
GETParameters:[_URL queryParameters]
|
||||
scheme:[_URL scheme]
|
||||
host:[_URL host]
|
||||
host:[_URL hostAndPort]
|
||||
consumerKey:self.OAuth1ConsumerKey
|
||||
consumerSecret:self.OAuth1ConsumerSecret
|
||||
accessToken:self.OAuth1AccessToken
|
||||
|
||||
Reference in New Issue
Block a user