jakarta-jmeter-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mstov...@apache.org
Subject cvs commit: jakarta-jmeter/src/org/apache/jmeter/protocol/http/config UrlConfig.java
Date Fri, 08 Jun 2001 17:47:38 GMT
mstover1    01/06/08 10:47:38

  Modified:    src/org/apache/jmeter/protocol/http/config UrlConfig.java
  Log:
  Removed extraneous '?' from GET requests
  
  Revision  Changes    Path
  1.11      +6 -3      jakarta-jmeter/src/org/apache/jmeter/protocol/http/config/UrlConfig.java
  
  Index: UrlConfig.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/org/apache/jmeter/protocol/http/config/UrlConfig.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- UrlConfig.java	2001/06/07 23:38:46	1.10
  +++ UrlConfig.java	2001/06/08 17:47:36	1.11
  @@ -64,8 +64,8 @@
    *  Apache Foundation
    *
    *@author     Michael Stover
  - *@created    $Date: 2001/06/07 23:38:46 $
  - *@version    $Revision: 1.10 $
  + *@created    $Date: 2001/06/08 17:47:36 $
  + *@version    $Revision: 1.11 $
    ***********************************************************/
   
   public class UrlConfig extends AbstractConfigElement
  @@ -84,6 +84,9 @@
   	 ***********************************************************/
   	public UrlConfig()
   	{
  +		setDomain("");
  +		setPath("");
  +		this.putProperty(ARGUMENTS,new Arguments());
   	}
   
   	public boolean expectsModification()
  @@ -100,7 +103,7 @@
   	public URL getUrl() throws MalformedURLException
   	{
   		String pathAndQuery = null;
  -		if(this.getMethod().equals(this.GET))
  +		if(this.getMethod().equals(this.GET) && getQueryString().length() > 0)
   		{
   			pathAndQuery = this.getPath()+"?"+getQueryString();
   		}
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


Mime
View raw message