caldav-adapter 8.2.0 → 8.2.1

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/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.0",
4
+ "version": "8.2.1",
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
- ctx.status = 200;
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