Author: sebb
Date: Thu Jan 11 17:28:52 2007
New Revision: 495462
URL: http://svn.apache.org/viewvc?view=rev&rev=495462
Log:
Replace == with string.equals()
Modified:
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
Modified:
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
URL:
http://svn.apache.org/viewvc/jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java?view=diff&rev=495462&r1=495461&r2=495462
==============================================================================
---
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
(original)
+++
jakarta/jmeter/branches/rel-2-2/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
Thu Jan 11 17:28:52 2007
@@ -127,7 +127,7 @@
* If we're dealing with text data, and if we're
spoofing https,
* replace all occurences of "https" with "http" for
the client.
*/
- if (httpsSpoof && result.getDataType() == result.TEXT)
+ if (httpsSpoof &&
SampleResult.TEXT.equals(result.getDataType()))
{
String noHttpsResult = new
String(result.getResponseData());
result.setResponseData(noHttpsResult.replaceAll("https", "http").getBytes());
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]