Fixed wrong method call

This commit is contained in:
Pablo Fernandez committed 2011-03-13 10:44:31 -03:00
1 parent c441b7d8a4
commit 6bdae4999e
1 file changed
+3 -2
@@ -25,9 +25,10 @@ public class TokenExtractor20Impl implements AccessTokenExtractor
Matcher matcher = Pattern.compile(TOKEN_REGEX).matcher(response);
if (matcher.matches())
{
String token = URLUtils.percentDecode(matcher.group(1));
String token = URLUtils.formURLDecode(matcher.group(1));
return new Token(token, EMPTY_SECRET);
} else
}
else
{
throw new OAuthException("Response body is incorrect. Can't extract a token from this: '" + response + "'", null);
}