wapplr 1.0.63 → 1.0.64
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.
|
@@ -285,9 +285,8 @@ function createMiddlewares(p) {
|
|
|
285
285
|
parsedPath = _sendData$parsedPath === void 0 ? {} : _sendData$parsedPath;
|
|
286
286
|
var _html = data;
|
|
287
287
|
var _parsedPath$ext = parsedPath.ext,
|
|
288
|
-
ext = _parsedPath$ext === void 0 ? ".html" : _parsedPath$ext
|
|
289
|
-
|
|
290
|
-
charSet = _parsedPath$charSet === void 0 ? ext === '.html' ? 'utf-8' : '' : _parsedPath$charSet;
|
|
288
|
+
ext = _parsedPath$ext === void 0 ? ".html" : _parsedPath$ext;
|
|
289
|
+
var charSet = sendData.charSet ? sendData.charSet : ext === '.html' ? 'utf-8' : '';
|
|
291
290
|
var mtime = stats.mtime;
|
|
292
291
|
|
|
293
292
|
if (!res.getHeader("Accept-Ranges")) {
|