Skip to content

Commit 5623e8f

Browse files
author
Javen
committed
Remove https proxy test code - to use https proxy feature, you need a https proxy server.
You may have a look: https://github.com/Exa-Networks/exaproxy
1 parent 175f059 commit 5623e8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cn/jpush/api/examples/PushExample.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import cn.jpush.api.JPushClient;
77
import cn.jpush.api.common.APIConnectionException;
88
import cn.jpush.api.common.APIRequestException;
9-
import cn.jpush.api.common.HttpProxy;
109
import cn.jpush.api.push.PushResult;
1110
import cn.jpush.api.push.model.Message;
1211
import cn.jpush.api.push.model.Options;
@@ -36,8 +35,9 @@ public static void main(String[] args) {
3635

3736

3837
public static void testSendPush() {
39-
HttpProxy proxy = new HttpProxy("localhost", 3128);
40-
JPushClient jpushClient = new JPushClient(masterSecret, appKey, 3, proxy);
38+
// HttpProxy proxy = new HttpProxy("localhost", 3128);
39+
// Can use this https proxy: https://github.com/Exa-Networks/exaproxy
40+
JPushClient jpushClient = new JPushClient(masterSecret, appKey, 3);
4141

4242
// For push, all you need do is to build PushPayload object.
4343
PushPayload payload = buildPushObject_all_all_alert();

0 commit comments

Comments
 (0)