commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbe...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpMethodBase.java
Date Fri, 02 May 2003 22:06:11 GMT
mbecke      2003/05/02 15:06:11

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpMethodBase.java
  Log:
  Changed the HttpMethodBase(String) constructor to not re-encode the given URI.
  
  PR: 19609
  Submitted by: Michael Becke
  Reviewed by: Oleg Kalnichevski
  
  Revision  Changes    Path
  1.144     +8 -9      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java
  
  Index: HttpMethodBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpMethodBase.java,v
  retrieving revision 1.143
  retrieving revision 1.144
  diff -u -r1.143 -r1.144
  --- HttpMethodBase.java	1 May 2003 19:14:17 -0000	1.143
  +++ HttpMethodBase.java	2 May 2003 22:06:10 -0000	1.144
  @@ -255,8 +255,8 @@
               if (uri == null || uri.equals("")) {
                   uri = "/";
               }
  -            URI parsedURI = new URI(uri);
  -
  +            URI parsedURI = new URI(uri.toCharArray());
  +            
               // only set the host if specified by the URI
               if (parsedURI.isAbsoluteURI()) {
                   hostConfiguration = new HostConfiguration();
  @@ -266,13 +266,12 @@
                       parsedURI.getScheme()
                   ); 
               }
  -            // else { FIXME: just in case, is not abolsute uri, then?
  -
  +            
               // set the path, defaulting to root
               setPath(
                   parsedURI.getPath() == null
                   ? "/"
  -                : parsedURI.getPath()
  +                : parsedURI.getEscapedPath()
               );
               setQueryString(parsedURI.getEscapedQuery());
   
  
  
  

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


Mime
View raw message