lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From da...@apache.org
Subject lucene-solr:jira/http2: Fix forbidden APIs
Date Sun, 02 Dec 2018 19:29:45 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/jira/http2 a3979d589 -> 18e909690


Fix forbidden APIs


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/18e90969
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/18e90969
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/18e90969

Branch: refs/heads/jira/http2
Commit: 18e909690ed1b95ab6eaf66a6defff450362a5d5
Parents: a3979d5
Author: Cao Manh Dat <datcm@apache.org>
Authored: Sun Dec 2 19:29:36 2018 +0000
Committer: Cao Manh Dat <datcm@apache.org>
Committed: Sun Dec 2 19:29:36 2018 +0000

----------------------------------------------------------------------
 .../org/apache/solr/client/solrj/embedded/JettySolrRunner.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/18e90969/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java
b/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java
index 98e86ac..ccc91fe 100644
--- a/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java
+++ b/solr/core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java
@@ -25,6 +25,7 @@ import java.util.ArrayList;
 import java.util.EnumSet;
 import java.util.LinkedList;
 import java.util.List;
+import java.util.Locale;
 import java.util.Map;
 import java.util.Properties;
 import java.util.Random;
@@ -527,7 +528,7 @@ public class JettySolrRunner {
     }
     ServerConnector c = (ServerConnector) conns[0];
 
-    protocol = c.getDefaultProtocol().toLowerCase().startsWith("ssl") ? "https" : "http";
+    protocol = c.getDefaultProtocol().toLowerCase(Locale.ROOT).startsWith("ssl") ? "https"
: "http";
 
     this.protocol = protocol;
     this.host = c.getHost();


Mime
View raw message