Skip to content

Commit

Permalink
Update Oauth adapter to parse encoded body data.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 8, 2016
1 parent a495cb0 commit 592daec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Http/Client/Auth/Oauth.php
Expand Up @@ -206,7 +206,9 @@ protected function _normalizedParams($request, $oauthValues)

$post = [];
$body = $request->body();

if (is_string($body) && $request->getHeaderLine('content-type') === 'application/x-www-form-urlencoded') {
parse_str($body, $post);
}
if (is_array($body)) {
$post = $body;
}
Expand Down

0 comments on commit 592daec

Please sign in to comment.