调整上传客服头像接口
This commit is contained in:
1 parent
3f0a120047
commit
c0f0705519
4 files changed
+36
-33
No files matched your search
@@ -107,11 +107,8 @@ public class Netty4HttpClient extends AbstractHttpClient {
|
||||
}
|
||||
}
|
||||
};
|
||||
InetSocketAddress address = new InetSocketAddress(
|
||||
InetSocketAddress address = useProxy ? (InetSocketAddress) params.getProxy().address() : new InetSocketAddress(
|
||||
InetAddress.getByName(uri.getHost()), getPort(uri));
|
||||
if (useProxy) {
|
||||
address = (InetSocketAddress) params.getProxy().address();
|
||||
}
|
||||
bootstrap.connect(address).syncUninterruptibly()
|
||||
.addListener(listener);
|
||||
response = future.get();
|
||||
|
||||
Reference in new issue
Block a user