Permalink
Browse files

Fixed wrong method call

  • Loading branch information...
1 parent c441b7d commit 6bdae4999ed89b32bcc0469789ce3883120a0886 @fernandezpablo85 fernandezpablo85 committed Mar 13, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/main/java/org/scribe/extractors/TokenExtractor20Impl.java
@@ -25,9 +25,10 @@ public Token extract(String response)
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);
}

0 comments on commit 6bdae49

Please sign in to comment.