forked from loafle/openapi-generator-original
This patch fixes two issues with the Resteasy generated client code. The first is the usage of a deprecated method, getFormData. The fix for this issue was originally conceived by @peter-seitz. The second issue was a problem in how the Content-Disposition header was being constructed. If we had a file named "test.txt" and were uploading it to a field named "myFile", the Content-Disposition header should look like Content-Disposition: form-data; name="myFile" Instead, the code was using the file's name (rather than the field name) in the name directive and the header looked like Content-Disposition: form-data; name="test.txt" The Content-Disposition header can take an optional directive, filename, but I have not included that here as that directive is mostly useful for file downloads and not uploads.