Polish contribution

See gh-25006
This commit is contained in:
Stephane Nicoll 2021-02-09 09:10:56 +01:00
parent 634dd979d1
commit 948f61b4ca

View File

@ -168,8 +168,8 @@ public abstract class AbstractWebFluxEndpointHandlerMapping extends RequestMappi
private void registerLinksMapping() {
String path = this.endpointMapping.getPath();
String[] produces = StringUtils.toStringArray(this.endpointMediaTypes.getProduced());
RequestMethod method = RequestMethod.GET;
RequestMappingInfo mapping = RequestMappingInfo.paths(path).methods(method).produces(produces).build();
RequestMappingInfo mapping = RequestMappingInfo.paths(path).methods(RequestMethod.GET).produces(produces)
.build();
LinksHandler linksHandler = getLinksHandler();
registerMapping(mapping, linksHandler,
ReflectionUtils.findMethod(linksHandler.getClass(), "links", ServerWebExchange.class));