httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: httpd-2.0/modules/dav/main util.c
Date Tue, 22 Apr 2003 21:52:47 GMT
jerenkrantz    2003/04/22 14:52:46

  Modified:    modules/dav/main util.c
  Log:
  Fix a typo in the weak entity check.  The prefix is W/" not "W/.
  
  Revision  Changes    Path
  1.48      +6 -8      httpd-2.0/modules/dav/main/util.c
  
  Index: util.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/dav/main/util.c,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -u -r1.47 -r1.48
  --- util.c	3 Feb 2003 17:52:58 -0000	1.47
  +++ util.c	22 Apr 2003 21:52:46 -0000	1.48
  @@ -1079,23 +1079,21 @@
                   /* Do a weak entity comparison function as defined in
                    * RFC 2616 13.3.3.
                    */
  -                if (state_list->etag[0] == '"' &&
  -                    state_list->etag[1] == 'W' &&
  -                    state_list->etag[2] == '/') {
  +                if (state_list->etag[0] == 'W' &&
  +                    state_list->etag[1] == '/' &&
  +                    state_list->etag[2] == '"') {
                       new_etag = apr_pstrdup(p, state_list->etag);
                       new_etag += 2;
  -                    new_etag[0] = '"';
                       given_etag = new_etag;
                   }
                   else {
                       given_etag = state_list->etag;
                   }
  -                if (etag[0] == '"' &&
  -                    etag[1] == 'W' &&
  -                    etag[2] == '/') {
  +                if (etag[0] == 'W' &&
  +                    etag[1] == '/' &&
  +                    etag[2] == '"') {
                       new_etag = apr_pstrdup(p, etag);
                       new_etag += 2;
  -                    new_etag[0] = '"';
                       current_etag = new_etag;
                   }
                   else {
  
  
  

Mime
View raw message