mehcode / oauth1-rs

Apache License 2.0
11 stars 12 forks source link

Fails to properly authorize request for Twitter when `params` contains characters that need percent encoding #3

Open tesaguri opened 6 years ago

tesaguri commented 6 years ago

For example, request to https://stream.twitter.com/1.1/statuses/filter.json fails when the parameters are like track=test%2Ctrack.

For your information, oauthcli crate has OAuthAuthorizationHeaderBuilder::finish_for_twitter method which skips percent encoding for parameter strings, and it can authorize request like above without problem.

mehcode commented 4 years ago

If you (or anyone) still want this done, I'd accept a PR.