mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -199,7 +199,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.emptyIfNull(value), false);
|
||||
this.header(name, StrUtil.toStringOrEmpty(value), false);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
|
@@ -126,7 +126,7 @@ public interface HeaderOperation<T extends HeaderOperation<T>> {
|
||||
for (final Map.Entry<String, ? extends Collection<String>> entry : headerMap.entrySet()) {
|
||||
name = entry.getKey();
|
||||
for (final String value : entry.getValue()) {
|
||||
this.header(name, StrUtil.emptyIfNull(value), isOverride);
|
||||
this.header(name, StrUtil.toStringOrEmpty(value), isOverride);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user