You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2013/09/08 22:00:44 UTC
svn commit: r1520905 -
/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
Author: pmouawad
Date: Sun Sep 8 20:00:43 2013
New Revision: 1520905
URL: http://svn.apache.org/r1520905
Log:
Move variable declaration to where it is used
Modified:
jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java?rev=1520905&r1=1520904&r2=1520905&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/Proxy.java Sun Sep 8 20:00:43 2013
@@ -189,7 +189,6 @@ public class Proxy extends Thread {
SampleResult result = null;
HeaderManager headers = null;
HTTPSamplerBase sampler = null;
- String[] param = new String[0];
log.debug(port + "====================================================================");
try {
// Now, parse initial request (in case it is a CONNECT request)
@@ -209,7 +208,7 @@ public class Proxy extends Thread {
outStreamClient.write(("HTTP/1.0 200 OK\r\n\r\n").getBytes(SampleResult.DEFAULT_HTTP_ENCODING)); // $NON-NLS-1$
outStreamClient.flush();
// With ssl request, url is host:port (without https:// or path)
- param = request.getUrl().split(":"); // $NON-NLS-1$
+ String[] param = request.getUrl().split(":"); // $NON-NLS-1$
if (param.length == 2) {
log.debug(port + "Start to negotiate SSL connection, host: " + param[0]);
clientSocket = startSSL(clientSocket, param[0]);