Skip to content

Commit

Permalink
Write filename in lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenni0451 committed Oct 14, 2024
1 parent 8cd8392 commit 51ad4ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public FormPart(final String name, final HttpContent content) {

public FormPart(final String name, final HttpContent content, @Nullable final String fileName) {
this.content = content;
this.setHeader(Headers.CONTENT_DISPOSITION, "form-data; name=\"" + name + "\"" + (fileName == null ? "" : ("; fileName=\"" + fileName + "\"")));
this.setHeader(Headers.CONTENT_DISPOSITION, "form-data; name=\"" + name + "\"" + (fileName == null ? "" : ("; filename=\"" + fileName + "\"")));
this.setHeader(Headers.CONTENT_TYPE, content.getContentType().toString());
}

Expand Down

0 comments on commit 51ad4ee

Please sign in to comment.