cloudhead / node-static

rfc 2616 compliant HTTP static-file server module, with built-in caching.
MIT License
2.17k stars 245 forks source link

Latest change on mime@1.3 breaks node-static@0.7.9 #199

Closed fmalk closed 7 years ago

fmalk commented 7 years ago

We had our production environment collapse because node-static wants mime >="1.2.9", which introduced a breaking change

TypeError: mime.lookup is not a function
at Server.respond (/var/app/current/node_modules/node-static/lib/node-static.js:348:28)
at /var/app/current/node_modules/node-static/lib/node-static.js:64:22
at FSReqWrap.oncomplete (fs.js:123:15)

Forcing npm install mime@1.3.6 fixed the issue for us

cloudhead commented 7 years ago

Fixed & published.

jvschoen commented 6 years ago

This worked for me! Thanks for the suggestion. -J