summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2018-10-21 13:18:53 -0300
committerFelipe Sateler <fsateler@debian.org>2018-10-21 13:18:53 -0300
commitbcda5f13205748e2020fb23529a64de6a68c5d61 (patch)
treefee3c194302a145a1abaaefd18342ad9a139ed9f
parent0d7743550f9951b7a79f89a90132759642e246e7 (diff)
Adjust bundled connect-static to work with recent mime library.
Version 2 of the mime library renamed lookup() to getType(). Bug-Debian: https://bugs.debian.org/907785 Gbp-Pq: Name 2021-bundle-connect-static-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,
};