]> granicus.if.org Git - apache/commitdiff
If the provider returns an error, then we should propagate it (rather
authorGreg Stein <gstein@apache.org>
Sun, 20 Jan 2002 03:17:12 +0000 (03:17 +0000)
committerGreg Stein <gstein@apache.org>
Sun, 20 Jan 2002 03:17:12 +0000 (03:17 +0000)
than override it with HTTP_INTERNAL_SERVER_ERROR).

The specific case observed was a provider issuing a redirect.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92937 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/main/mod_dav.c

index 2b522bb892edb7c89c17dc2e1b6867faab5e4a40..3b331355e8afdb60c6d22fb3f9cfd2a542370ace 100644 (file)
@@ -680,7 +680,7 @@ static dav_error * dav_get_resource(request_rec *r, int label_allowed,
                                                  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;
     }