diff options
Diffstat (limited to 'lib/webcals/request/propfind.js')
-rw-r--r-- | lib/webcals/request/propfind.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/webcals/request/propfind.js b/lib/webcals/request/propfind.js index 9e06b49..d73530c 100644 --- a/lib/webcals/request/propfind.js +++ b/lib/webcals/request/propfind.js @@ -42,6 +42,18 @@ _createPayload: function() { var content = this.template.tag('prop', this._props.join('')); return this.template.render(content); + }, + + _processResult: function(req, callback) { + if ('multistatus' in this.sax.root) { + callback(null, this.sax.root.multistatus, req); + } else { + //XXX: Improve error handling + callback( + new Error('unexpected xml result'), + this.sax.root, req + ); + } } }; |