You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2007/12/29 21:28:58 UTC
svn commit: r607472 - /httpd/httpd/trunk/modules/dav/main/util.c
Author: rpluem
Date: Sat Dec 29 12:28:57 2007
New Revision: 607472
URL: http://svn.apache.org/viewvc?rev=607472&view=rev
Log:
* Style police. No functional changes.
Modified:
httpd/httpd/trunk/modules/dav/main/util.c
Modified: httpd/httpd/trunk/modules/dav/main/util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/dav/main/util.c?rev=607472&r1=607471&r2=607472&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/dav/main/util.c (original)
+++ httpd/httpd/trunk/modules/dav/main/util.c Sat Dec 29 12:28:57 2007
@@ -1413,7 +1413,7 @@
/* If-Match '*' fix. Resource existence not checked by ap_meets_conditions.
* If-Match '*' request should succeed only if the resource exists. */
if ((if_match = apr_table_get(r->headers_in, "If-Match")) != NULL) {
- if(if_match[0] == '*' && resource_state != DAV_RESOURCE_EXISTS)
+ if (if_match[0] == '*' && resource_state != DAV_RESOURCE_EXISTS)
return HTTP_PRECONDITION_FAILED;
}
@@ -1421,14 +1421,16 @@
/* If-None-Match '*' fix. If-None-Match '*' request should succeed
* if the resource does not exist. */
- if(retVal == HTTP_PRECONDITION_FAILED) {
+ if (retVal == HTTP_PRECONDITION_FAILED) {
/* Note. If if_none_match != NULL, if_none_match is the culprit.
* Since, in presence of If-None-Match,
* other If-* headers are undefined. */
- if((if_none_match =
- apr_table_get(r->headers_in, "If-None-Match")) != NULL) {
- if(if_none_match[0] == '*' && resource_state != DAV_RESOURCE_EXISTS)
+ if ((if_none_match =
+ apr_table_get(r->headers_in, "If-None-Match")) != NULL) {
+ if (if_none_match[0] == '*'
+ && resource_state != DAV_RESOURCE_EXISTS) {
return OK;
+ }
}
}