From 4bf9657682fa601151b56591c6d5d2c583d89dd4 Mon Sep 17 00:00:00 2001 From: "panagiotis.kanakakis" Date: Tue, 19 Mar 2019 13:48:39 +0000 Subject: [PATCH] Bug fix on repository service --- .../eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java b/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java index 03a9924..069b429 100644 --- a/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java +++ b/src/main/java/eu/dnetlib/repo/manager/service/RepositoryServiceImpl.java @@ -117,6 +117,8 @@ public class RepositoryServiceImpl implements RepositoryService { LOGGER.debug("Initialization method of repository api!"); LOGGER.debug("Updated version!"); + httpHeaders = new HttpHeaders(); + httpHeaders.set("Content-Type", "application/json"); for (String vocName : vocabularyNames) { vocabularyMap.put(vocName, vocabularyLoader.getVocabulary(vocName, Locale.ENGLISH, Locale.ROOT));