Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 36333bf7 authored by Pawel GUTOWSKI's avatar Pawel GUTOWSKI
Browse files

EDELIVERY-2258 Fixed charset in HTTP header after merge of EDELIVERY-2771

parent 5ef22b40
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,6 @@ import java.util.List;
import static eu.europa.ec.smp.api.Identifiers.asString;
import static org.apache.commons.lang3.StringUtils.isNotBlank;
import static org.springframework.http.MediaType.TEXT_XML_VALUE;
import static org.springframework.http.ResponseEntity.created;
import static org.springframework.http.ResponseEntity.ok;
......@@ -76,7 +75,7 @@ public class ServiceGroupController {
private BaseServiceMetadataInterfaceImpl serviceMetadataService;
@GetMapping(produces = TEXT_XML_VALUE)
@GetMapping(produces = "text/xml; charset=UTF-8")
public ServiceGroup getServiceGroup(@PathVariable String serviceGroupId) {
log.info("GET ServiceGrooup: {}", serviceGroupId);
......
......@@ -33,7 +33,6 @@ import java.io.UnsupportedEncodingException;
import static eu.europa.ec.smp.api.Identifiers.asDocumentId;
import static eu.europa.ec.smp.api.Identifiers.asParticipantId;
import static org.springframework.http.MediaType.TEXT_XML_VALUE;
import static org.springframework.http.ResponseEntity.created;
import static org.springframework.http.ResponseEntity.ok;
......@@ -59,7 +58,7 @@ public class ServiceMetadataController {
@Autowired
private ServiceMetadataPathBuilder pathBuilder;
@GetMapping(produces = TEXT_XML_VALUE)
@GetMapping(produces = "text/xml; charset=UTF-8")
public String getServiceMetadata(@PathVariable String serviceGroupId,
@PathVariable String serviceMetadataId) throws TransformerException, UnsupportedEncodingException {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment