parent
e0d740fe85
commit
d823d7b0b1
|
@ -31,6 +31,7 @@ import java.util.Map;
|
||||||
import io.undertow.UndertowOptions;
|
import io.undertow.UndertowOptions;
|
||||||
|
|
||||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||||
|
import org.springframework.boot.context.properties.DeprecatedConfigurationProperty;
|
||||||
import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
import org.springframework.boot.context.properties.NestedConfigurationProperty;
|
||||||
import org.springframework.boot.convert.DurationUnit;
|
import org.springframework.boot.convert.DurationUnit;
|
||||||
import org.springframework.boot.web.server.Compression;
|
import org.springframework.boot.web.server.Compression;
|
||||||
|
@ -1576,10 +1577,13 @@ public class ServerProperties {
|
||||||
this.maxCookies = maxCookies;
|
this.maxCookies = maxCookies;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
@DeprecatedConfigurationProperty(reason = "This option was interpreted improperly")
|
||||||
public boolean isAllowEncodedSlash() {
|
public boolean isAllowEncodedSlash() {
|
||||||
return this.allowEncodedSlash;
|
return this.allowEncodedSlash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public void setAllowEncodedSlash(boolean allowEncodedSlash) {
|
public void setAllowEncodedSlash(boolean allowEncodedSlash) {
|
||||||
this.allowEncodedSlash = allowEncodedSlash;
|
this.allowEncodedSlash = allowEncodedSlash;
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,6 +87,7 @@ public class UndertowWebServerFactoryCustomizer
|
||||||
map.from(this::getOrDeduceUseForwardHeaders).to(factory::setUseForwardHeaders);
|
map.from(this::getOrDeduceUseForwardHeaders).to(factory::setUseForwardHeaders);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
private void mapUndertowProperties(ConfigurableUndertowWebServerFactory factory, ServerOptions serverOptions) {
|
private void mapUndertowProperties(ConfigurableUndertowWebServerFactory factory, ServerOptions serverOptions) {
|
||||||
PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();
|
PropertyMapper map = PropertyMapper.get().alwaysApplyingWhenNonNull();
|
||||||
Undertow properties = this.serverProperties.getUndertow();
|
Undertow properties = this.serverProperties.getUndertow();
|
||||||
|
|
|
@ -150,6 +150,7 @@ class UndertowWebServerFactoryCustomizerTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@Deprecated
|
||||||
void allowEncodedSlashes() {
|
void allowEncodedSlashes() {
|
||||||
bind("server.undertow.allow-encoded-slash=true");
|
bind("server.undertow.allow-encoded-slash=true");
|
||||||
assertThat(boundServerOption(UndertowOptions.ALLOW_ENCODED_SLASH)).isTrue();
|
assertThat(boundServerOption(UndertowOptions.ALLOW_ENCODED_SLASH)).isTrue();
|
||||||
|
|
|
@ -1955,7 +1955,7 @@ bom {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
library("Undertow", "2.2.23.Final") {
|
library("Undertow", "2.2.24.Final") {
|
||||||
group("io.undertow") {
|
group("io.undertow") {
|
||||||
modules = [
|
modules = [
|
||||||
"undertow-core",
|
"undertow-core",
|
||||||
|
|
Loading…
Reference in New Issue