[FIX] (RestApi tool) multipart file is not merged with nest parameter

This commit is contained in:
Edouard DUPIN 2025-03-30 23:23:51 +02:00
parent e09de7cc7a
commit 1c769827cf

View File

@ -202,6 +202,7 @@ public class RESTApi {
partHeader.append("Content-Type: application/octet-stream\r\n\r\n");
bodyParts.add(partHeader.toString().getBytes());
bodyParts.add(Files.readAllBytes(file.toPath()));
bodyParts.add("\r\n".getBytes());
} else {
partHeader.append("Content-Disposition: form-data; name=\"").append(entry.getKey())
.append("\"\r\n\r\n");