ソースを参照

解决执行器回调URL不支持配置HTTPS时问题。

xuxueli 8 年 前
コミット
822a01401a
共有1 個のファイルを変更した2 個の追加2 個の削除を含む
  1. 2 2
      xxl-job-core/src/main/java/com/xxl/job/core/rpc/netcom/jetty/client/JettyClient.java

+ 2 - 2
xxl-job-core/src/main/java/com/xxl/job/core/rpc/netcom/jetty/client/JettyClient.java ファイルの表示

@@ -21,8 +21,8 @@ public class JettyClient {
21 21
 
22 22
 			// reqURL
23 23
 			String reqURL = request.getServerAddress();
24
-			if (reqURL!=null && reqURL.toLowerCase().indexOf("http://")==-1) {
25
-				reqURL = "http://" + request.getServerAddress() + "/";
24
+			if (reqURL!=null && reqURL.toLowerCase().indexOf("http")==-1) {
25
+				reqURL = "http://" + request.getServerAddress() + "/";	// IP:PORT, need parse to url
26 26
 			}
27 27
 
28 28
 			// remote invoke