You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by je...@apache.org on 2001/02/26 14:49:55 UTC

cvs commit: jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods WebdavMethodBase.java

jericho     01/02/26 05:49:55

  Modified:    src/webdav/client/src/org/apache/webdav/lib/methods
                        WebdavMethodBase.java
  Log:
  - Be good to see the header (some letters are changed to the upper case)
  
  Revision  Changes    Path
  1.15      +7 -7      jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/WebdavMethodBase.java
  
  Index: WebdavMethodBase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/WebdavMethodBase.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- WebdavMethodBase.java	2001/02/26 06:35:57	1.14
  +++ WebdavMethodBase.java	2001/02/26 13:49:53	1.15
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/WebdavMethodBase.java,v 1.14 2001/02/26 06:35:57 remm Exp $
  - * $Revision: 1.14 $
  - * $Date: 2001/02/26 06:35:57 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/webdav/lib/methods/WebdavMethodBase.java,v 1.15 2001/02/26 13:49:53 jericho Exp $
  + * $Revision: 1.15 $
  + * $Date: 2001/02/26 13:49:53 $
    *
    * ====================================================================
    *
  @@ -390,14 +390,14 @@
           }
   
           if (!headers.containsKey("host")) {
  -            headers.put("host", new Header("host", host));
  +            headers.put("host", new Header("Host", host));
           }
   
           // add the cookies
           if (!headers.containsKey("cookie")) {
               Vector cookies = state.getCookies();
               if (cookies != null && cookies.size() > 0) {
  -                headers.put("cookie",
  +                headers.put("Cookie",
                       Cookie.createCookieHeader(host, getPath(), cookies));
               }
           }
  @@ -489,7 +489,7 @@
        */
       public final String generateRequestLine() {
   
  -        return (getName() + " " + state.URLEncode(path) + " " 
  +        return (getName() + " " + state.URLEncode(path) + " "
                   + PROTOCOL + "\r\n");
   
       }
  @@ -497,7 +497,7 @@
   
       /**
        * Return true if the method needs a content-length header in the request.
  -     * 
  +     *
        * @return true if a content-length header will be expected by the server
        */
       public boolean needContentLength() {