We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 404102a commit 1f0dbccCopy full SHA for 1f0dbcc
weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpServiceOkHttpImpl.java
@@ -50,12 +50,12 @@ public void initHttp() {
50
clientBuilder.proxy(getRequestHttpProxy().getProxy());
51
52
//设置授权
53
- clientBuilder.authenticator(new Authenticator() {
+ clientBuilder.proxyAuthenticator(new Authenticator() {
54
@Override
55
public Request authenticate(Route route, Response response) throws IOException {
56
String credential = Credentials.basic(httpProxy.getProxyUsername(), httpProxy.getProxyPassword());
57
return response.request().newBuilder()
58
- .header("Authorization", credential)
+ .header("Proxy-Authorization", credential)
59
.build();
60
}
61
});
0 commit comments