Skip to content
Permalink
Browse files

Update Oauth adapter to parse encoded body data.

  • Loading branch information...
markstory committed May 8, 2016
1 parent a495cb0 commit 592daec332d10c9723891b7ab33347557abd588f
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Http/Client/Auth/Oauth.php
@@ -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;
}

0 comments on commit 592daec

Please sign in to comment.
You can’t perform that action at this time.