diff options
-rw-r--r-- | lib/caldav/request/abstract.js | 1 | ||||
-rw-r--r-- | test/caldav/request/abstract_test.js | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/caldav/request/abstract.js b/lib/caldav/request/abstract.js index 04d2128..4b72fd5 100644 --- a/lib/caldav/request/abstract.js +++ b/lib/caldav/request/abstract.js @@ -43,6 +43,7 @@ } this.xhr = new XHR(xhrOptions); + this.xhr.headers['Content-Type'] = 'text/xml'; } Abstract.prototype = { diff --git a/test/caldav/request/abstract_test.js b/test/caldav/request/abstract_test.js index b63c355..6d74320 100644 --- a/test/caldav/request/abstract_test.js +++ b/test/caldav/request/abstract_test.js @@ -40,6 +40,7 @@ suite('caldav/request/abstract.js', function() { assert.equal(subject.xhr.url, url); assert.equal(subject.configOpt, options.configOpt); assert.instanceOf(subject.sax, SAX); + assert.equal(subject.xhr.headers['Content-Type'], 'text/xml'); }); test('xhr password options', function() { |