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

Content-Type not set #394

Closed
mo22 opened this issue Apr 17, 2019 · 0 comments
Closed

Content-Type not set #394

mo22 opened this issue Apr 17, 2019 · 0 comments

Comments

@mo22
Copy link

mo22 commented Apr 17, 2019

In metro@0.51.1 src/Server.js sets the correct Content-Type in _rangeRequestMiddleware only if the request is a range request.
There is a res.setHeader("Content-Type", mime.lookup(path.basename(assetPath[1]))); missing just after process.env.REACT_NATIVE_ENABLE_ASSET_CACHING

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant