Use explicit locale with upper/lower case conversions

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1578441 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Oleg Kalnichevski 2014-03-17 15:35:06 +00:00
parent 68855c40f4
commit b370df34ca
1 changed files with 2 additions and 2 deletions

View File

@ -288,8 +288,8 @@ public class URIUtils {
outputBuffer.append('/');
}
try {
final String scheme = uri.getScheme().toLowerCase();
final String auth = uri.getAuthority().toLowerCase();
final String scheme = uri.getScheme().toLowerCase(Locale.ROOT);
final String auth = uri.getAuthority().toLowerCase(Locale.ROOT);
final URI ref = new URI(scheme, auth, outputBuffer.toString(),
null, null);
if (uri.getQuery() == null && uri.getFragment() == null) {