Commit 760b5e85 authored by Stephane Nicoll's avatar Stephane Nicoll

Merge branch '2.0.x'

parents da6a8e86 dc9254c3
......@@ -55,11 +55,6 @@ public class ManagementServerProperties implements SecurityPrerequisite {
@NestedConfigurationProperty
private Ssl ssl;
/**
* Add the "X-Application-Context" HTTP header in each response.
*/
private boolean addApplicationContextHeader = false;
/**
* Returns the management port or {@code null} if the
* {@link ServerProperties#getPort() server port} should be used.
......@@ -99,14 +94,6 @@ public class ManagementServerProperties implements SecurityPrerequisite {
return this.servlet;
}
public boolean getAddApplicationContextHeader() {
return this.addApplicationContextHeader;
}
public void setAddApplicationContextHeader(boolean addApplicationContextHeader) {
this.addApplicationContextHeader = addApplicationContextHeader;
}
/**
* Servlet properties.
*/
......
......@@ -1229,6 +1229,12 @@
"level": "error"
}
},
{
"name": "management.server.add-application-context-header",
"type": "java.lang.Boolean",
"description": "Add the \"X-Application-Context\" HTTP header in each response.",
"defaultValue": false
},
{
"name": "management.shell.auth.jaas.domain",
"type": "java.lang.String",
......
......@@ -33,7 +33,6 @@ public class ManagementServerPropertiesTests {
ManagementServerProperties properties = new ManagementServerProperties();
assertThat(properties.getPort()).isNull();
assertThat(properties.getServlet().getContextPath()).isEqualTo("");
assertThat(properties.getAddApplicationContextHeader()).isFalse();
}
@Test
......
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