Skip to content

Commit cf38985

Browse files
committed
#36 Use a type for generic HTTP request
Signed-off-by: Sven Strittmatter <sven.strittmatter@iteratec.com>
1 parent b771f1b commit cf38985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/securecodebox/persistence/defectdojo/service/DefaultImportScanService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public String getFilename() {
126126
body.add("file", contentsAsResource);
127127

128128
// FIXME: We do not define the the type T of the body here!
129-
final var payload = new HttpEntity<>(body, headers);
129+
final var payload = new HttpEntity<MultiValueMap<String, Object>>(body, headers);
130130

131131
return restTemplate.exchange(defectDojoUrl + "/api/v2/" + endpoint + "/", HttpMethod.POST, payload, ImportScanResponse.class).getBody();
132132
} catch (HttpClientErrorException e) {

0 commit comments

Comments
 (0)