hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1578441 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIUtils.java
Date Mon, 17 Mar 2014 15:35:06 GMT
Author: olegk
Date: Mon Mar 17 15:35:06 2014
New Revision: 1578441

URL: http://svn.apache.org/r1578441
Log:
Use explicit locale with upper/lower case conversions

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIUtils.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIUtils.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIUtils.java?rev=1578441&r1=1578440&r2=1578441&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIUtils.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/client/utils/URIUtils.java
Mon Mar 17 15:35:06 2014
@@ -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) {



Mime
View raw message