From 57bb7e16e6c32ef6936cfe56acb2d79ba38e48d9 Mon Sep 17 00:00:00 2001 From: Dominika Tkaczyk Date: Mon, 11 May 2015 13:08:25 +0200 Subject: [PATCH] MediaType.APPLICATION_XML set for affiliation parser --- .../pl/edu/icm/cermine/web/controller/CermineController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/cermine-web/src/main/java/pl/edu/icm/cermine/web/controller/CermineController.java b/cermine-web/src/main/java/pl/edu/icm/cermine/web/controller/CermineController.java index ac64eaed..1a206c51 100644 --- a/cermine-web/src/main/java/pl/edu/icm/cermine/web/controller/CermineController.java +++ b/cermine-web/src/main/java/pl/edu/icm/cermine/web/controller/CermineController.java @@ -241,6 +241,7 @@ public ResponseEntity parseSync(HttpServletRequest request, Model model) response = outputter.outputString(element); } } else { + responseHeaders.setContentType(MediaType.APPLICATION_XML); CRFAffiliationParser parser = new CRFAffiliationParser(); Element parsedAff = parser.parse(affText); XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());