You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by gs...@apache.org on 2002/01/20 04:17:12 UTC

cvs commit: httpd-2.0/modules/dav/main mod_dav.c

gstein      02/01/19 19:17:12

  Modified:    modules/dav/main mod_dav.c
  Log:
  If the provider returns an error, then we should propagate it (rather
  than override it with HTTP_INTERNAL_SERVER_ERROR).
  
  The specific case observed was a provider issuing a redirect.
  
  Revision  Changes    Path
  1.68      +1 -1      httpd-2.0/modules/dav/main/mod_dav.c
  
  Index: mod_dav.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/dav/main/mod_dav.c,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- mod_dav.c	14 Jan 2002 13:43:24 -0000	1.67
  +++ mod_dav.c	20 Jan 2002 03:17:12 -0000	1.68
  @@ -680,7 +680,7 @@
                                                    label, use_checked_in,
                                                    res_p);
       if (err != NULL) {
  -        err = dav_push_error(r->pool, HTTP_INTERNAL_SERVER_ERROR, 0,
  +        err = dav_push_error(r->pool, err->status, 0,
                                "Could not fetch resource information.", err);
           return err;
       }