diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/utils/TaskRunnerClient.java b/backend/services/system-setting/src/main/java/io/metersphere/system/utils/TaskRunnerClient.java index 66f364d2f4..4ce3b6d7fc 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/utils/TaskRunnerClient.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/utils/TaskRunnerClient.java @@ -47,6 +47,7 @@ public class TaskRunnerClient { String token = totpGenerator.now(); HttpHeaders headers = new HttpHeaders(); headers.add(MsHttpHeaders.OTP_TOKEN, token); + headers.add(HttpHeaders.CONTENT_TYPE, "application/json"); HttpEntity httpEntity = new HttpEntity<>(headers); ResponseEntity entity = restTemplateWithTimeOut.exchange(u, HttpMethod.GET, httpEntity, ResultHolder.class, uriVariables); return entity.getBody();