Remove non-empty filename check in ContentDisposition builder

This commit ensures that the ContentDisposition.Builder is consistent
with ContentDisposition and accepts null/empty filenames.

Closes gh-30537
This commit is contained in:
Evgeny Nikonchuk 2023-05-24 11:31:12 +03:00 committed by Sam Brannen
parent 4c8f1910c8
commit 7f9349b7ae
1 changed files with 0 additions and 2 deletions

View File

@ -807,14 +807,12 @@ public final class ContentDisposition {
@Override
public Builder filename(String filename) {
Assert.hasText(filename, "No filename");
this.filename = filename;
return this;
}
@Override
public Builder filename(String filename, Charset charset) {
Assert.hasText(filename, "No filename");
this.filename = filename;
this.charset = charset;
return this;