updated GitHubRequest.java

using URI.toASCIIString() instead of URI.toString() in urlPathEncode()
This commit is contained in:
Stefan Reisner
2020-05-06 16:54:21 +02:00
parent 50903b5c4a
commit e6d7f7248b

View File

@@ -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);
}