wapplr 1.0.64 → 1.0.65

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.
@@ -282,7 +282,8 @@ function createMiddlewares(p) {
282
282
  _sendData$stats = sendData.stats,
283
283
  stats = _sendData$stats === void 0 ? {} : _sendData$stats,
284
284
  _sendData$parsedPath = sendData.parsedPath,
285
- parsedPath = _sendData$parsedPath === void 0 ? {} : _sendData$parsedPath;
285
+ parsedPath = _sendData$parsedPath === void 0 ? {} : _sendData$parsedPath,
286
+ dontSetContentLength = sendData.dontSetContentLength;
286
287
  var _html = data;
287
288
  var _parsedPath$ext = parsedPath.ext,
288
289
  ext = _parsedPath$ext === void 0 ? ".html" : _parsedPath$ext;
@@ -299,7 +300,7 @@ function createMiddlewares(p) {
299
300
  }).join('; '));
300
301
  }
301
302
 
302
- if (!res.getHeader("Content-Length")) {
303
+ if (!res.getHeader("Content-Length") && !dontSetContentLength) {
303
304
  res.setHeader("Content-Length", Buffer.byteLength(_html));
304
305
  }
305
306
 
package/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "files": [
23
23
  "dist/*"
24
24
  ],
25
- "version": "1.0.64",
25
+ "version": "1.0.65",
26
26
  "main": "dist/server",
27
27
  "browser": "dist/client",
28
28
  "repository": {