Query string parameters are being encoded into x-www-form-urlencoded format, however OAuth spec requires rfc3986.
This commit is contained in:
1 parent
0a63f935d2
commit
79d26389e7
1 file changed
+1
-10
@@ -1,7 +1,5 @@
|
|||||||
package org.scribe.model;
|
package org.scribe.model;
|
||||||
|
|
||||||
import java.io.UnsupportedEncodingException;
|
|
||||||
import java.net.URLEncoder;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@@ -63,14 +61,7 @@ public class ParameterList
|
|||||||
|
|
||||||
public String asOauthBaseString()
|
public String asOauthBaseString()
|
||||||
{
|
{
|
||||||
try
|
return OAuthEncoder.encode(asFormUrlEncodedString());
|
||||||
{
|
|
||||||
return URLEncoder.encode(asFormUrlEncodedString(), "UTF8");
|
|
||||||
}
|
|
||||||
catch (UnsupportedEncodingException uee)
|
|
||||||
{
|
|
||||||
throw new RuntimeException();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String asFormUrlEncodedString()
|
public String asFormUrlEncodedString()
|
||||||
|
|||||||
Reference in new issue
Block a user