kcassell    2003/03/04 11:27:37

  Modified:    src/protocol/http/org/apache/jmeter/protocol/http/proxy
                        ProxyControl.java
  Log:
  Changes so that a default port specified in the HTTPDefaults object
  won't appear in an HTTPRequest generated by the HTTPRoxyServer.
  
  Revision  Changes    Path
  1.15      +9 -8      
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/proxy/ProxyControl.java
  
  Index: ProxyControl.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/proxy/ProxyControl.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- ProxyControl.java 3 Mar 2003 21:50:49 -0000       1.14
  +++ ProxyControl.java 4 Mar 2003 19:27:37 -0000       1.15
  @@ -2,7 +2,7 @@
    * ====================================================================
    * The Apache Software License, Version 1.1
    *
  - * Copyright (c) 2001 The Apache Software Foundation.  All rights
  + * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
    * reserved.
    *
    * Redistribution and use in source and binary forms, with or without
  @@ -358,12 +358,13 @@
               {
                   sampler.setDomain("");
               }
  -            /* Need to add some kind of "ignore-me" value
  -               if (("" + 
sampler.getPort()).equals(urlConfig.getProperty(HTTPSampler.PORT)))
  -               {
  -               sampler.setPort(0);
  -               }
  -            */
  +            
  +            // Need to add some kind of "ignore-me" value
  +            if (("" + 
sampler.getPort()).equals(urlConfig.getProperty(HTTPSampler.PORT)))
  +            {
  +                sampler.setPort(HTTPSampler.UNSPECIFIED_PORT);
  +            }
  +            
               if (sampler.getPath().equals(urlConfig.getProperty(HTTPSampler.PATH)))
               {
                   sampler.setPath("");
  
  
  

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

Reply via email to