Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
build the header in http:request format
  • Loading branch information
Paul Bonser authored and Paul Bonser committed Nov 6, 2008
1 parent e941cbc commit 83803f4ad93ddf57cc30305ea2e184a1183e198b
Showing 1 changed file with 2 additions and 1 deletion.
@@ -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),

0 comments on commit 83803f4

Please sign in to comment.