-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(nextcloud): Add support for checksums for uploading WebDAV files
Signed-off-by: provokateurin <[email protected]>
- Loading branch information
1 parent
63330c5
commit f0ab700
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
packages/nextcloud/test/fixtures/webdav/upload_file_with_checksum.regexp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
PUT http://localhost/remote\.php/webdav/test/checksum\.png | ||
authorization: Bearer mock | ||
content-length: 8650 | ||
content-type: application/xml | ||
oc-checksum: md5:abc | ||
ocs-apirequest: true | ||
requesttoken: token | ||
.+ | ||
PROPFIND http://localhost/remote\.php/webdav/test/checksum\.png | ||
authorization: Bearer mock | ||
content-type: application/xml | ||
ocs-apirequest: true | ||
requesttoken: token | ||
<d:propfind xmlns:d="DAV:" xmlns:oc="http://owncloud\.org/ns" xmlns:nc="http://nextcloud\.org/ns" xmlns:ocs="http://open-collaboration-services\.org/ns" xmlns:ocm="http://open-cloud-mesh\.org/ns"><d:prop><oc:checksums/></d:prop></d:propfind> |