This commit is contained in:
Looly
2024-07-13 12:04:43 +08:00
parent c4627a339d
commit b30bf90210
44 changed files with 361 additions and 301 deletions

View File

@@ -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;

View File

@@ -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);
}
}
}