mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -15,7 +15,7 @@ import java.util.Map;
|
||||
import java.util.Map.Entry;
|
||||
|
||||
/**
|
||||
* http基类
|
||||
* http基类,提供请求和响应共用的属性和方法。
|
||||
*
|
||||
* @param <T> 子类类型,方便链式编程
|
||||
* @author Looly
|
||||
@@ -347,8 +347,8 @@ public abstract class HttpBase<T> {
|
||||
final StringBuilder sb = StrUtil.builder();
|
||||
sb.append("Request Headers: ").append(StrUtil.CRLF);
|
||||
for (final Entry<String, List<String>> entry : this.headers.entrySet()) {
|
||||
sb.append(" ").append(
|
||||
entry.getKey()).append(": ").append(CollUtil.join(entry.getValue(), ","))
|
||||
sb.append(" ")
|
||||
.append(entry.getKey()).append(":").append(CollUtil.join(entry.getValue(), ","))
|
||||
.append(StrUtil.CRLF);
|
||||
}
|
||||
|
||||
|
@@ -18,6 +18,11 @@ public class AndroidSupportSSLFactory extends CustomProtocolsSSLFactory {
|
||||
private static final String[] protocols = {
|
||||
SSLProtocols.SSLv3, SSLProtocols.TLSv1, SSLProtocols.TLSv11, SSLProtocols.TLSv12};
|
||||
|
||||
/**
|
||||
* 构造
|
||||
*
|
||||
* @throws IORuntimeException IO异常
|
||||
*/
|
||||
public AndroidSupportSSLFactory() throws IORuntimeException {
|
||||
super(protocols);
|
||||
}
|
||||
|
@@ -8,7 +8,8 @@ package cn.hutool.http.ssl;
|
||||
*/
|
||||
public class DefaultSSLFactory extends CustomProtocolsSSLFactory {
|
||||
|
||||
public DefaultSSLFactory() {
|
||||
}
|
||||
|
||||
/**
|
||||
* 构造
|
||||
*/
|
||||
public DefaultSSLFactory() {}
|
||||
}
|
||||
|
Reference in New Issue
Block a user