Skip to content

Commit 6bdae49

Browse files
Fixed wrong method call
1 parent c441b7d commit 6bdae49

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/org/scribe/extractors/TokenExtractor20Impl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ public Token extract(String response)
2525
Matcher matcher = Pattern.compile(TOKEN_REGEX).matcher(response);
2626
if (matcher.matches())
2727
{
28-
String token = URLUtils.percentDecode(matcher.group(1));
28+
String token = URLUtils.formURLDecode(matcher.group(1));
2929
return new Token(token, EMPTY_SECRET);
30-
} else
30+
}
31+
else
3132
{
3233
throw new OAuthException("Response body is incorrect. Can't extract a token from this: '" + response + "'", null);
3334
}

0 commit comments

Comments
 (0)