You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2007/10/19 20:55:10 UTC
svn commit: r586576 -
/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
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: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org