|
@@ -215,7 +215,21 @@ NSString const *OCWebDAVModificationDateKey = @"modificationdate";
|
|
|
NSMutableURLRequest *request = [self requestWithMethod:_requestMethod path:path parameters:nil timeout:k_timeout_webdav];
|
|
|
|
|
|
[request setValue: depth forHTTPHeaderField: @"Depth"];
|
|
|
- [request setHTTPBody:[@"<?xml version=\"1.0\" encoding=\"UTF-8\"?><D:propfind xmlns:D=\"DAV:\" xmlns:oc=\"http://owncloud.org/ns\" xmlns:nc=\"http://nextcloud.org/ns\"><D:prop><D:resourcetype/><D:getlastmodified/><size xmlns=\"http://owncloud.org/ns\"/><favorite xmlns=\"http://owncloud.org/ns\"/><id xmlns=\"http://owncloud.org/ns\"/><D:getcontentlength/><D:getetag/><oc:fileid/><permissions xmlns=\"http://owncloud.org/ns\"/><D:getcontenttype/><nc:is-encrypted/><nc:has-preview/></D:prop></D:propfind>" dataUsingEncoding:NSUTF8StringEncoding]];
|
|
|
+ [request setHTTPBody:[@"<?xml version=\"1.0\" encoding=\"UTF-8\"?><D:propfind xmlns:D=\"DAV:\" xmlns:oc=\"http://owncloud.org/ns\" xmlns:nc=\"http://nextcloud.org/ns\">"
|
|
|
+ "<D:prop>"
|
|
|
+ "<D:resourcetype/>"
|
|
|
+ "<D:getlastmodified/>"
|
|
|
+ "<size xmlns=\"http://owncloud.org/ns\"/>"
|
|
|
+ "<favorite xmlns=\"http://owncloud.org/ns\"/>"
|
|
|
+ "<id xmlns=\"http://owncloud.org/ns\"/>"
|
|
|
+ "<D:getcontentlength/>"
|
|
|
+ "<D:getetag/>"
|
|
|
+ "<oc:fileid/>"
|
|
|
+ "<permissions xmlns=\"http://owncloud.org/ns\"/>"
|
|
|
+ "<D:getcontenttype/><nc:is-encrypted/>"
|
|
|
+ "<nc:has-preview/>"
|
|
|
+ "</D:prop>"
|
|
|
+ "</D:propfind>" dataUsingEncoding:NSUTF8StringEncoding]];
|
|
|
[request setValue:@"application/xml" forHTTPHeaderField:@"Content-Type"];
|
|
|
|
|
|
|