From 0d978429e4fb620a7c3a1e82aafff495a8d9c785 Mon Sep 17 00:00:00 2001 From: "petar.tahchiev" Date: Mon, 23 Apr 2018 15:02:21 +0300 Subject: [PATCH] Remove the fallback media types. --- .../data/rest/webmvc/RepositoryRestHandlerMapping.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java index 5318ec001..425cc08b7 100644 --- a/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java +++ b/spring-data-rest-webmvc/src/main/java/org/springframework/data/rest/webmvc/RepositoryRestHandlerMapping.java @@ -201,8 +201,8 @@ protected ProducesRequestCondition customize(ProducesRequestCondition condition) } HashSet mediaTypes = new LinkedHashSet(); - mediaTypes.add(configuration.getDefaultMediaType().toString()); - mediaTypes.add(MediaType.APPLICATION_JSON_VALUE); +// mediaTypes.add(configuration.getDefaultMediaType().toString()); +// mediaTypes.add(MediaType.APPLICATION_JSON_VALUE); return new ProducesRequestCondition(mediaTypes.toArray(new String[mediaTypes.size()])); }