diff options
author | James Lal <james@lightsofapollo.com> | 2012-07-06 09:02:58 -0700 |
---|---|---|
committer | James Lal <james@lightsofapollo.com> | 2012-07-06 09:02:58 -0700 |
commit | be1e5c9f50bea5e820da048c0f4d4f5810a86281 (patch) | |
tree | 68fa8975aaf62b28549be42c99b65d0ebaf415b7 | |
parent | cb10a247cfc91511cfc0e31bfcbb1d6f7d178529 (diff) | |
download | jsCalDAV-be1e5c9f50bea5e820da048c0f4d4f5810a86281.tar.gz |
Add content type
-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() { |