Skip to content

Commit

Permalink
Merge pull request #6 from permil/feature/percent-encode-for-oauth1-c…
Browse files Browse the repository at this point in the history
…allback

Applied percent-encoding for callback in OAuth1's header
  • Loading branch information
Yoshihiro Tanaka authored Feb 7, 2018
2 parents 5836c05 + f3b9cca commit 59a45db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oauth1.nim
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ proc getOAuth1RequestHeader*(params: OAuth1Parameters, extraHeaders: string): st
if params.token != nil:
result = result & subex(", oauth_token=\"$#\"") % [ params.token ]
if params.callback != nil:
result = result & subex(", oauth_callback=\"$#\"") % [ params.callback ]
result = result & subex(", oauth_callback=\"$#\"") % [ percentEncode(params.callback) ]
if params.verifier != nil:
result = result & subex(", oauth_verifier=\"$#\"") % [ params.verifier ]
if params.isIncludeVersionToHeader:
Expand Down

0 comments on commit 59a45db

Please sign in to comment.