improving solution
This commit is contained in:
parent
7453f3be78
commit
f2cb73c563
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue