Commit 9bb22ffb authored by dreis2211's avatar dreis2211 Committed by Stephane Nicoll

Remove usages of deprecated Connector.setAttribute()

See gh-21671
parent eb38eeaf
...@@ -160,11 +160,11 @@ public class TomcatWebServerFactoryCustomizer ...@@ -160,11 +160,11 @@ public class TomcatWebServerFactoryCustomizer
} }
private void customizeRelaxedPathChars(ConfigurableTomcatWebServerFactory factory, String relaxedChars) { private void customizeRelaxedPathChars(ConfigurableTomcatWebServerFactory factory, String relaxedChars) {
factory.addConnectorCustomizers((connector) -> connector.setAttribute("relaxedPathChars", relaxedChars)); factory.addConnectorCustomizers((connector) -> connector.setProperty("relaxedPathChars", relaxedChars));
} }
private void customizeRelaxedQueryChars(ConfigurableTomcatWebServerFactory factory, String relaxedChars) { private void customizeRelaxedQueryChars(ConfigurableTomcatWebServerFactory factory, String relaxedChars) {
factory.addConnectorCustomizers((connector) -> connector.setAttribute("relaxedQueryChars", relaxedChars)); factory.addConnectorCustomizers((connector) -> connector.setProperty("relaxedQueryChars", relaxedChars));
} }
private String joinCharacters(List<Character> content) { private String joinCharacters(List<Character> content) {
......
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