Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Fix a bug where the wrong path was being signed #91

Closed
wants to merge 1 commit into from
Closed

Fix a bug where the wrong path was being signed #91

wants to merge 1 commit into from

Conversation

kylef
Copy link

@kylef kylef commented Oct 15, 2013

If you have set a baseURL which is something like: http://api.something.com/1/
When you do the following:

[self requestWithMethod:@"GET" path:@"user" parameters:nil];

The URL should be:

http://api.something.com/1/user

Thus, the path should be:

/1/user

However, it is passing the suffix of the path to the oauth signing code so it
is instead signing:

user

If you have set a baseURL which is something like: http://api.something.com/1/
When you do the following:

    [self requestWithMethod:@"GET" path:@"user" parameters:nil];

The URL should be:

    http://api.something.com/1/user

Thus, the path should be:

    /1/user

However, it is passing the suffix of the path to the oauth signing code so it
is instead signing:

    user
@kylef kylef closed this Oct 15, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant