diff --git a/backend/src/main/java/io/metersphere/api/service/HistoricalDataUpgradeService.java b/backend/src/main/java/io/metersphere/api/service/HistoricalDataUpgradeService.java index 6bfe58d770..a20aea382f 100644 --- a/backend/src/main/java/io/metersphere/api/service/HistoricalDataUpgradeService.java +++ b/backend/src/main/java/io/metersphere/api/service/HistoricalDataUpgradeService.java @@ -145,7 +145,7 @@ public class HistoricalDataUpgradeService { } } if (!isJsonType) { - request1.getHeaders().add(new KeyValue("Content-Type", "application/json")); + request1.getHeaders().set(request1.getHeaders().size() - 1, new KeyValue("Content-Type", "application/json")); } } }