View | Details | Raw Unified | Return to bug 47442
Collapse All | Expand All

(-)src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java (-1 / +1 lines)
Lines 333-339 Link Here
333
                final String HTTPS_PREFIX = "https://";
333
                final String HTTPS_PREFIX = "https://";
334
                if (forcedHTTPS && HTTPConstants.HEADER_LOCATION.equalsIgnoreCase(parts[0])
334
                if (forcedHTTPS && HTTPConstants.HEADER_LOCATION.equalsIgnoreCase(parts[0])
335
                        && parts[1].substring(0, HTTPS_PREFIX.length()).equalsIgnoreCase(HTTPS_PREFIX)){
335
                        && parts[1].substring(0, HTTPS_PREFIX.length()).equalsIgnoreCase(HTTPS_PREFIX)){
336
                    headerLines[i]=headerLines[i].replaceFirst(HTTPS_PREFIX, "http://");
336
                	headerLines[i]=headerLines[i].replaceFirst(parts[1].substring(0,HTTPS_PREFIX.length()), "http://");
337
                    continue;
337
                    continue;
338
                }
338
                }
339
            }
339
            }

Return to bug 47442