Skip to content

Commit

Permalink
Revert "Revert "Remove the ; at the end of httpclient variable""
Browse files Browse the repository at this point in the history
This reverts commit 56dbbe8.
  • Loading branch information
tomas-sexenian committed Dec 26, 2023
1 parent 56dbbe8 commit d54d8bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ String getHeaderTemplate(String name, String fileName, String mimeType){
}
String getFormDataTemplate(String varName, String value){
String contentType = getContentTypeFromString(value);
return "\r\n--" + boundary + "\r\nContent-Disposition: form-data; name=\"" + varName + "\";\r\n" + ((contentType != null)? "Content-Type: " + contentType + "\r\n" : "") + "\r\n" + value;
return "\r\n--" + boundary + "\r\nContent-Disposition: form-data; name=\"" + varName + "\"\r\n" + ((contentType != null)? "Content-Type: " + contentType + "\r\n" : "") + "\r\n" + value;
}

private String getContentTypeFromString(String value){
Expand Down

0 comments on commit d54d8bd

Please sign in to comment.