Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mime error #12

Open
taemi opened this issue Dec 6, 2019 · 0 comments · May be fixed by #13
Open

mime error #12

taemi opened this issue Dec 6, 2019 · 0 comments · May be fixed by #13

Comments

@taemi
Copy link

taemi commented Dec 6, 2019

var mimeType = mime.lookup(relName);
                        ^
TypeError: mime.lookup is not a function

I guess you have to replace require 'mime' with 'mime-types'

nponeccop added a commit to nponeccop/connect-static that referenced this issue Apr 28, 2020
Mime 2.x deleted charset support, as it isn't very useful now
(almost everyone has moved to UTF-8). So
we can either delete the charset header or use a different library
which does provide the charset API.

Closes andrewrk#12
@nponeccop nponeccop linked a pull request Apr 28, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant