Commit d9f15636 authored by Vedran Pavic's avatar Vedran Pavic Committed by Andy Wilkinson

Fix use of == in EndpointWebMvcHypermediaManagementContextConfiguration

Closes gh-4502
Closes gh-4536
parent 46edee2e
......@@ -128,8 +128,7 @@ public class EndpointWebMvcHypermediaManagementContextConfiguration {
ManagementServerProperties management, DocsMvcEndpoint endpoint) {
String path = management.getContextPath() + endpoint.getPath()
+ "/#spring_boot_actuator__{rel}";
if (server.getPort() == management.getPort() && management.getPort() != null
&& management.getPort() != 0) {
if (server.getPort().equals(management.getPort()) && management.getPort() != 0) {
path = server.getPath(path);
}
return new DefaultCurieProvider("boot", new UriTemplate(path));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment