mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
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:
committed by
Sam Brannen
parent
4c8f1910c8
commit
7f9349b7ae
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user