DATAREST-1390 - Temporary workaround for regression in Spring 5.2 snapshots.

This commit is contained in:
Oliver Drotbohm
2019-06-06 13:49:15 +02:00
parent a506520c80
commit 8ce25f7918

View File

@@ -109,6 +109,9 @@ public class BasePathAwareHandlerMapping extends RequestMappingHandlerMapping {
mediaTypes.add(configuration.getDefaultMediaType());
}
// DATAREST-1390 - Temporary workaround
request.setAttribute(ProducesRequestCondition.class.getName() + ".MEDIA_TYPES", mediaTypes);
return super.lookupHandlerMethod(lookupPath, new CustomAcceptHeaderHttpServletRequest(request, mediaTypes));
}