Skip to content
Permalink
Browse files
Fix generated Content-disposition header for failing test
After fixing issue 65884, the parser for the content-disposition header is more
lenient on the usage of quotes, but less forgiving about missing seperators between
the parameters.

Part of Bugzilla Id: 65884
  • Loading branch information
FSchumacher committed Feb 17, 2022
1 parent 33ad930 commit bc0d31de7b06b4b2666637e8fdcee74548e3e79f
Showing 1 changed file with 1 addition and 1 deletion.
@@ -612,7 +612,7 @@ private String createMultipartFileUploadBody(String fileField, String fileName,
String fileMimeType, String fileContent, String boundary, String endOfLine) {
// File upload multipart
String postBody = "--" + boundary + endOfLine
+ "Content-Disposition: form-data; name=\"" + fileField + "\" filename=\"" + fileName + "\"" + endOfLine
+ "Content-Disposition: form-data; name=\"" + fileField + "\"; filename=\"" + fileName + "\"" + endOfLine
+ "Content-Type: " + fileMimeType + endOfLine
+ "Content-Transfer-Encoding: binary" + endOfLine
+ endOfLine

0 comments on commit bc0d31d

Please sign in to comment.