mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -180,7 +180,7 @@ public enum GlobalHeaders {
|
||||
for (final Entry<String, List<String>> entry : headers.entrySet()) {
|
||||
name = entry.getKey();
|
||||
for (final String value : entry.getValue()) {
|
||||
this.header(name, StrUtil.nullToEmpty(value), false);
|
||||
this.header(name, StrUtil.emptyIfNull(value), false);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
|
@@ -174,7 +174,7 @@ public abstract class HttpBase<T> {
|
||||
}
|
||||
|
||||
for (final Entry<String, String> entry : headers.entrySet()) {
|
||||
this.header(entry.getKey(), StrUtil.nullToEmpty(entry.getValue()), isOverride);
|
||||
this.header(entry.getKey(), StrUtil.emptyIfNull(entry.getValue()), isOverride);
|
||||
}
|
||||
return (T) this;
|
||||
}
|
||||
@@ -207,7 +207,7 @@ public abstract class HttpBase<T> {
|
||||
for (final Entry<String, List<String>> entry : headers.entrySet()) {
|
||||
name = entry.getKey();
|
||||
for (final String value : entry.getValue()) {
|
||||
this.header(name, StrUtil.nullToEmpty(value), isOverride);
|
||||
this.header(name, StrUtil.emptyIfNull(value), isOverride);
|
||||
}
|
||||
}
|
||||
return (T) this;
|
||||
@@ -227,7 +227,7 @@ public abstract class HttpBase<T> {
|
||||
}
|
||||
|
||||
for (final Entry<String, String> entry : headers.entrySet()) {
|
||||
this.header(entry.getKey(), StrUtil.nullToEmpty(entry.getValue()), false);
|
||||
this.header(entry.getKey(), StrUtil.emptyIfNull(entry.getValue()), false);
|
||||
}
|
||||
return (T) this;
|
||||
}
|
||||
|
@@ -213,7 +213,7 @@ public class HttpConnection {
|
||||
for (final Entry<String, List<String>> entry : headerMap.entrySet()) {
|
||||
name = entry.getKey();
|
||||
for (final String value : entry.getValue()) {
|
||||
this.header(name, StrUtil.nullToEmpty(value), isOverride);
|
||||
this.header(name, StrUtil.emptyIfNull(value), isOverride);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user