improving solution

This commit is contained in:
Luca Frosini 2023-02-17 14:34:08 +01:00
parent 7453f3be78
commit f2cb73c563
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ public class License extends REST<CKANLicense> implements org.gcube.gcat.api.int
public String list() throws WebServiceException {
String ret = super.list(-1, -1);
String accept = httpHeaders.getHeaderString("Accept");
if(accept.contains(GCatConstants.APPLICATION_JSON_API)) {
if(accept.startsWith(GCatConstants.APPLICATION_JSON_API)) {
ObjectMapper objectMapper = new ObjectMapper();
ObjectNode objectNode = objectMapper.createObjectNode();
try {