Skip to content

Commit cc8982d

Browse files
committed
Handle binary types properly in the Java resttemplate client
1 parent 3864c60 commit cc8982d

File tree

1 file changed

+1
-1
lines changed
  • src/main/resources/handlebars/Java/libraries/resttemplate

1 file changed

+1
-1
lines changed

src/main/resources/handlebars/Java/libraries/resttemplate/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public class {{classname}} {
102102
{{#hasFormParams}}
103103
{{#formParams}}
104104
if ({{paramName}} != null)
105-
{{localVariablePrefix}}formParams.add("{{baseName}}", {{#is this 'file'}}new FileSystemResource({{paramName}}){{/is}}{{#isNot this 'file'}}{{paramName}}{{/isNot}});
105+
{{localVariablePrefix}}formParams.add("{{baseName}}", {{#is this 'binary'}}new FileSystemResource({{paramName}}){{/is}}{{#isNot this 'binary'}}{{paramName}}{{/isNot}});
106106
{{/formParams}}
107107
{{/hasFormParams}}
108108

0 commit comments

Comments
 (0)