Skip to content

Commit

Permalink
build the header in http:request format
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Bonser authored and Paul Bonser committed Nov 6, 2008
1 parent e941cbc commit 83803f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/oauth_request.erl
Expand Up @@ -14,7 +14,8 @@ url(Method, URL, ExtraParams, Consumer, TokenPair) ->
header(Realm, Method, URL, ExtraParams, Consumer, TokenPair) ->
SignedParams = params(Method, URL, ExtraParams, Consumer, TokenPair),
HeaderString = oauth_params:to_header_string(SignedParams),
fmt:sprintf("Authorization: OAuth realm=\"%s\", %s", [Realm, HeaderString]).
{"Authorization",
fmt:sprintf("OAuth realm=\"%s\", %s", [Realm, HeaderString])}.

params(Method, URL, ExtraParams, Consumer, TokenPair) ->
{Params, TokenSecret} = oauth_params(TokenPair, Consumer, ExtraParams),
Expand Down

0 comments on commit 83803f4

Please sign in to comment.