Author: sebb
Date: Fri Oct 19 11:55:10 2007
New Revision: 586576

URL: http://svn.apache.org/viewvc?rev=586576&view=rev
Log:
Should only replace https:, not https

Modified:
    
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java

Modified: 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java?rev=586576&r1=586575&r2=586576&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
 (original)
+++ 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
 Fri Oct 19 11:55:10 2007
@@ -161,12 +161,12 @@
                        
                        /*
                         * If we're dealing with text data, and if we're 
spoofing https, 
-                        * replace all occurences of "https" with "http" for 
the client. 
+                        * replace all occurences of "https:" with "http:" for 
the client. 
                         */
                        if (httpsSpoof && 
SampleResult.TEXT.equals(result.getDataType()))
                        {
                                String noHttpsResult = new 
String(result.getResponseData());
-                               
result.setResponseData(noHttpsResult.replaceAll("https", "http").getBytes());
+                               
result.setResponseData(noHttpsResult.replaceAll("https:", 
"http:").getBytes());// TODO this could mangle the encoding
                        }
 
             // Find the page encoding and possibly encodings for forms in the 
page



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to