summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2018-09-30 17:16:42 -0300
committerPetter Reinholdtsen <pere@debian.org>2018-09-30 17:16:42 -0300
commit920c8ee6dd3f16e38b16861144ee8110aff7e68f (patch)
tree26fb4a3bd6b3ddc840a70642224c69882795f4f4
parente8b236ef24f99614b1d871702655cf0df23a7279 (diff)
Adjust bundled connect-static to work with recent mime library.
Bug-Debian: https://bugs.debian.org/907785 Gbp-Pq: Name 2000-mime-gettype.patch
-rw-r--r--node_modules/connect-static/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/node_modules/connect-static/index.js b/node_modules/connect-static/index.js
index 6097f98..ed08b1e 100644
--- a/node_modules/connect-static/index.js
+++ b/node_modules/connect-static/index.js
@@ -35,7 +35,7 @@ function createGzipStaticMiddleware(options, cb) {
var cacheObj;
cache[relName] = cacheObj = {
sink: sink,
- mime: mime.lookup(relName),
+ mime: mime.getType(relName),
mtime: stat.mtime,
hash: null,
};