We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c441b7d commit 6bdae49Copy full SHA for 6bdae49
1 file changed
src/main/java/org/scribe/extractors/TokenExtractor20Impl.java
@@ -25,9 +25,10 @@ public Token extract(String response)
25
Matcher matcher = Pattern.compile(TOKEN_REGEX).matcher(response);
26
if (matcher.matches())
27
{
28
- String token = URLUtils.percentDecode(matcher.group(1));
+ String token = URLUtils.formURLDecode(matcher.group(1));
29
return new Token(token, EMPTY_SECRET);
30
- } else
+ }
31
+ else
32
33
throw new OAuthException("Response body is incorrect. Can't extract a token from this: '" + response + "'", null);
34
}
0 commit comments