mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 08:21:23 +00:00
updated GitHubRequest.java
using URI.toASCIIString() instead of URI.toString() in urlPathEncode()
This commit is contained in:
@@ -658,7 +658,7 @@ class GitHubRequest {
|
||||
*/
|
||||
private static String urlPathEncode(String value) {
|
||||
try {
|
||||
return new URI(null, null, value, null, null).toString();
|
||||
return new URI(null, null, value, null, null).toASCIIString();
|
||||
} catch (URISyntaxException ex) {
|
||||
throw new AssertionError(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user