Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Default to application/x-www-form-urlencoded in oauth_http:post.
  • Loading branch information
Tim Fletcher committed Nov 6, 2008
1 parent 2a514aa commit 102698d147a0ac89c42c35bad302524a1afe0dd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
@@ -28,7 +28,5 @@ post(URL, Consumer, TokenPair) ->
post(URL, Consumer, TokenPair, []).

post(URL, Consumer, TokenPair, Params) ->
oauth_http:post(URL, {
"application/x-www-form-urlencoded",
oauth_request:params_string("POST", URL, Params, Consumer, TokenPair)
}).
Data = oauth_request:params_string("POST", URL, Params, Consumer, TokenPair),
oauth_http:post(URL, Data).
@@ -8,4 +8,6 @@ get(URL) ->
http:request(URL).

post(URL, {MimeType, Data}) ->
http:request(post, {URL, [], MimeType, Data}, [], []).
http:request(post, {URL, [], MimeType, Data}, [], []);
post(URL, Data) ->
post(URL, {"application/x-www-form-urlencoded", Data}).

0 comments on commit 102698d

Please sign in to comment.