Windows phone 8.1 sends ETag=*, see https://www.ietf.org/rfc/rfc2068.txt, chapter 14.25

This commit is contained in:
Petr Jurášek 2015-07-09 08:41:48 +02:00
parent 3ca7960746
commit f03c0ecc3b

View File

@ -69,7 +69,7 @@ if ( $dav_resource->IsCollection() ) {
} }
} }
else { else {
if ( (isset($request->etag_if_match) && $request->etag_if_match != $dav_resource->unique_tag() ) ) { if ( isset($request->etag_if_match) && $request->etag_if_match != $dav_resource->unique_tag() && $request->etag_if_match != "*" ) {
$request->DoResponse( 412, translate("Resource has changed on server - not deleted") ); $request->DoResponse( 412, translate("Resource has changed on server - not deleted") );
} }