@@ -23,11 +23,9 @@ public class LabKeyProxyServlet extends ProxyServlet
2323
2424 /** The source URI to proxy from , defaults to /{contextpath}/{servletpath} */
2525 protected static final String P_SOURCE_PATH = "sourcePath" ;
26- protected static final String FLEX_REDIRECT_PROTOCOL = "flexRedirectProtocol" ;
2726 public static final String ALLOW_PROTOCOL_UPGRADE_PARAM_NAME = "LKS-protocolUpgradeEnabled" ;
2827
2928 protected String sourcePath ;
30- private boolean flexRedirectProtocol ;
3129 private boolean _allowProtocolUpgrade ;
3230
3331 @ Override
@@ -37,12 +35,6 @@ protected void initTarget() throws ServletException
3735
3836 sourcePath = getConfigParam (P_SOURCE_PATH );
3937
40- String flexRedirectProtocolString = getConfigParam (FLEX_REDIRECT_PROTOCOL );
41- if (flexRedirectProtocolString != null )
42- {
43- this .flexRedirectProtocol = Boolean .parseBoolean (flexRedirectProtocolString );
44- }
45-
4638 // httpclient5 v5.4 protocolUpgradeEnabled default to true
4739 // https://github.com/apache/httpcomponents-client/commit/3235f00
4840 this ._allowProtocolUpgrade = readBooleanConfigParam (ALLOW_PROTOCOL_UPGRADE_PARAM_NAME , true );
@@ -141,7 +133,7 @@ protected String rewriteUrlFromResponse(HttpServletRequest servletRequest, Strin
141133 LOG .info ("getTargetHost(servletRequest): {}" , getTargetHost (servletRequest ));
142134 LOG .info ("servletRequest.getRequestURL(): {}" , servletRequest .getRequestURL ());
143135
144- if (flexRedirectProtocol && theUrl .startsWith ("https://localhost:" ) && targetUri .startsWith ("http://localhost:" ))
136+ if (theUrl .startsWith ("https://localhost:" ) && targetUri .startsWith ("http://localhost:" ))
145137 {
146138 // Issue 47596: Make Dockerized version of rstudio server work in LabKey's AWS environment
147139 // For unknown reason, with AWS ALB, docker instance uses inconsistent http vs https protocol
0 commit comments