This is an automated email from the ASF dual-hosted git repository. mpapirkovskyy pushed a commit to branch branch-2.7 in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push: new edfa078 AMBARI-25159. http.strict-transport-security change does not take affect in 2.7.x. (mpapirkovskyy) (#2862) edfa078 is described below commit edfa078d78dbd2056563b61f8ef29e8c98d5d1e4 Author: Myroslav Papirkovskyi <mpapirkovs...@apache.org> AuthorDate: Wed Mar 13 14:19:50 2019 +0200 AMBARI-25159. http.strict-transport-security change does not take affect in 2.7.x. (mpapirkovskyy) (#2862) --- .../src/main/java/org/apache/ambari/server/controller/AmbariServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java b/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java index 530ddc3..7595b1a 100644 --- a/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java +++ b/ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariServer.java @@ -670,7 +670,6 @@ public class AmbariServer { ServerConnector apiConnector; HttpConfiguration http_config = new HttpConfiguration(); - http_config.addCustomizer(new SecureRequestCustomizer()); http_config.setRequestHeaderSize(configs.getHttpRequestHeaderSize()); http_config.setResponseHeaderSize(configs.getHttpResponseHeaderSize()); http_config.setSendServerVersion(false); @@ -684,6 +683,7 @@ public class AmbariServer { String httpsCrtPass = configsMap.get(Configuration.CLIENT_API_SSL_CRT_PASS.getKey()); HttpConfiguration https_config = new HttpConfiguration(http_config); + https_config.addCustomizer(new SecureRequestCustomizer()); https_config.setSecurePort(configs.getClientSSLApiPort()); SslContextFactory contextFactoryApi = new SslContextFactory();