mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-11-21 15:02:40 +00:00
test: migration from Python to JavaScript
This commit is contained in:
1 parent
a14c456800
commit
2b101a87b8
8 files changed
+151
-14
No files matched your search
+10
-3
@@ -77,9 +77,16 @@ class WebDAV {
|
||||
})
|
||||
}
|
||||
|
||||
getEvent(resource, filename) {
|
||||
getObject(resource, filename) {
|
||||
let url
|
||||
if (resource.match(/^http/))
|
||||
url = resource
|
||||
else
|
||||
url = this.serverUrl + resource
|
||||
if (filename)
|
||||
url += filename
|
||||
return davRequest({
|
||||
url: this.serverUrl + resource + filename,
|
||||
url,
|
||||
init: {
|
||||
method: 'GET',
|
||||
headers: this.headers,
|
||||
@@ -380,7 +387,7 @@ class WebDAV {
|
||||
})
|
||||
}
|
||||
|
||||
makeAddressBook(resource) {
|
||||
makeCollection(resource) {
|
||||
return makeCollection({
|
||||
url: this.serverUrl + resource,
|
||||
headers: this.headers
|
||||
|
||||
Reference in new issue
Block a user