rubys       01/08/01 17:20:14

  Modified:    java/src/org/apache/soap/util/net HTTPUtils.java
  Log:
  Ensure request URI contains at least one character
  
  Revision  Changes    Path
  1.22      +5 -2      xml-soap/java/src/org/apache/soap/util/net/HTTPUtils.java
  
  Index: HTTPUtils.java
  ===================================================================
  RCS file: /home/cvs/xml-soap/java/src/org/apache/soap/util/net/HTTPUtils.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- HTTPUtils.java    2001/06/25 21:54:19     1.21
  +++ HTTPUtils.java    2001/08/02 00:20:14     1.22
  @@ -205,10 +205,13 @@
                                                e.getMessage ());
         }
   
  +      /* Compute the Request URI */
  +      String URI = (httpProxyHost == null ? url.getFile() : url.toString());
  +      if (URI.length() == 0) URI = "/";
  +
         /* Construct the HTTP header. */
         StringBuffer headerbuf = new StringBuffer();
  -      headerbuf.append(Constants.HEADER_POST).append(' ')
  -          .append(httpProxyHost == null ? url.getFile() : url.toString())
  +      headerbuf.append(Constants.HEADER_POST).append(' ').append(URI)
             .append(" HTTP/").append(HTTP_VERSION).append("\r\n")
             .append(Constants.HEADER_HOST).append(": ").append(url.getHost())
             // .append(':').append(port)
  
  
  

Reply via email to