caldav-adapter 8.2.0 → 8.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/common/tags.js
CHANGED
|
@@ -217,7 +217,7 @@ module.exports = function (options) {
|
|
|
217
217
|
async resp({ event, ctx, calendar }) {
|
|
218
218
|
const ics = await options.data.buildICS(ctx, event, calendar);
|
|
219
219
|
return {
|
|
220
|
-
[buildTag(cal, 'calendar-data')]: ics
|
|
220
|
+
[buildTag(cal, 'calendar-data')]: { $cdata: ics }
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
223
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "caldav-adapter",
|
|
3
3
|
"description": "CalDAV server for Node.js and Koa. Modernized and maintained for Forward Email.",
|
|
4
|
-
"version": "8.2.
|
|
4
|
+
"version": "8.2.2",
|
|
5
5
|
"author": "Sanders DeNardi and Forward Email LLC",
|
|
6
6
|
"contributors": [
|
|
7
7
|
"Sanders DeNardi <sedenardi@gmail.com> (http://www.sandersdenardi.com/)",
|
|
@@ -29,7 +29,10 @@ module.exports = function (options) {
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
// fix header otherwise it's got a multi-status response
|
|
33
|
+
// (e.g. since we call `setMultistatusResponse` before exec())
|
|
34
|
+
ctx.set('Content-Type', 'text/html; charset="utf-8"');
|
|
35
|
+
ctx.status = 204; // no content
|
|
33
36
|
ctx.body = '';
|
|
34
37
|
};
|
|
35
38
|
|