httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stri...@apache.org
Subject svn commit: r153754 - httpd/httpd/trunk/modules/dav/main/mod_dav.c
Date Mon, 14 Feb 2005 09:46:21 GMT
Author: striker
Date: Mon Feb 14 01:46:19 2005
New Revision: 153754

URL: http://svn.apache.org/viewcvs?view=rev&rev=153754
Log:
Improve interaction with caches in mod_dav.

* modules/dav/main/mod_dav.c

  (dav_method_get): Check for conditionals.

Modified:
    httpd/httpd/trunk/modules/dav/main/mod_dav.c

Modified: httpd/httpd/trunk/modules/dav/main/mod_dav.c
URL: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/dav/main/mod_dav.c?view=diff&r1=153753&r2=153754
==============================================================================
--- httpd/httpd/trunk/modules/dav/main/mod_dav.c (original)
+++ httpd/httpd/trunk/modules/dav/main/mod_dav.c Mon Feb 14 01:46:19 2005
@@ -813,6 +813,7 @@
 {
     dav_resource *resource;
     dav_error *err;
+    int status;
 
     /* This method should only be called when the resource is not
      * visible to Apache. We will fetch the resource from the repository,
@@ -834,6 +835,12 @@
                              "Unable to set up HTTP headers.",
                              err);
         return dav_handle_err(r, err, NULL);
+    }
+
+    /* Handle conditional requests */
+    status = ap_meets_conditions(r);
+    if (status) {
+      return status;
     }
 
     if (r->header_only) {



Mime
View raw message