Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix bug in URL generation.
  • Loading branch information
Tim Fletcher committed Jun 15, 2008
1 parent 91537a4 commit ea425f043060b360583bb14e30687c5027dcdb6b
Showing 1 changed file with 2 additions and 2 deletions.
@@ -24,10 +24,10 @@ header(Realm, Method, URL, ExtraParams, Consumer, Tokens) ->
signed_header(Realm, Method, URL, Params, Consumer, TokenSecret).

oauth_params([], Consumer, ExtraParams) ->
{"", oauth_params(Consumer, ExtraParams)};
{oauth_params(Consumer, ExtraParams), ""};
oauth_params(Tokens, Consumer, ExtraParams) ->
Params = [proplists:lookup(oauth_token, Tokens)|oauth_params(Consumer, ExtraParams)],
{proplists:get_value(oauth_token_secret, Tokens), Params}.
{Params, proplists:get_value(oauth_token_secret, Tokens)}.

oauth_params(Consumer, ExtraParams) ->
proplists_merge([

0 comments on commit ea425f0

Please sign in to comment.