diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2018-10-21 13:18:53 -0300 |
---|---|---|
committer | Felipe Sateler <fsateler@debian.org> | 2018-10-21 13:18:53 -0300 |
commit | bcda5f13205748e2020fb23529a64de6a68c5d61 (patch) | |
tree | fee3c194302a145a1abaaefd18342ad9a139ed9f | |
parent | 0d7743550f9951b7a79f89a90132759642e246e7 (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.js | 2 |
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, }; |