Skip to content

Commit

Permalink
Remove non-empty filename check in ContentDisposition builder
Browse files Browse the repository at this point in the history
This commit ensures that the ContentDisposition.Builder is consistent
with ContentDisposition and accepts null/empty filenames.

Closes spring-projectsgh-30537
  • Loading branch information
Evgeny Nikonchuk authored and sbrannen committed May 24, 2023
1 parent 4c8f191 commit 7f9349b
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -807,14 +807,12 @@ public Builder name(String name) {

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

0 comments on commit 7f9349b

Please sign in to comment.