Skip to content

Commit

Permalink
Update services/src/main/java/org/fao/geonet/api/records/MetadataApi.…
Browse files Browse the repository at this point in the history
…java

Co-authored-by: Jose García <[email protected]>
  • Loading branch information
ianwallen and josegar74 authored Feb 20, 2024
1 parent 410cba3 commit 8a4b6b0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public String getRecord(
throw new NotAllowedException(ApiParams.API_RESPONSE_NOT_ALLOWED_CAN_VIEW);
}

String acceptHeader = StringUtils.isBlank(request.getHeader(HttpHeaders.ACCEPT))?MediaType.APPLICATION_XML_VALUE:request.getHeader(HttpHeaders.ACCEPT);
String acceptHeader = StringUtils.isBlank(request.getHeader(HttpHeaders.ACCEPT)) ? MediaType.APPLICATION_XML_VALUE : request.getHeader(HttpHeaders.ACCEPT);
List<String> accept = Arrays.asList(acceptHeader.split(","));

String defaultFormatter = "xsl-view";
Expand Down

0 comments on commit 8a4b6b0

Please sign in to comment.