-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Get mime type "application/octet-stream" for wasm files #1575
Comments
@samsam2310 can't reproduce, please create minimum reproducible test repo |
Here is the test repo: https://github.com/samsam2310/wp-bug Thanks |
Hi @evilebottnawi |
@samsam2310 feel free to send a PR with fix |
Hi @evilebottnawi |
@samsam2310 Do you have link on |
@evilebottnawi You can take a look about the PR I posted above : pillarjs/send#154 It seems like it should be released with [email protected], but it didn't. |
@samsam2310 strange, |
@evilebottnawi |
@samsam2310 hm, here PR https://github.com/expressjs/express/pull/3778/files, maybe we need workaround before this will be released |
@evilebottnawi ok, I can make a PR with a workaround solution. |
Code
Expected Behavior
.wasm files should have "application/wasm" content type.
Actual Behavior
Got "application/octet-stream"
For Bugs; How can we reproduce the behavior?
The files generate by webpack work fine. The issue only happen with the static files in contentBase folder.
More information:
mime version: 1.6.0
mime-types version: 2.1.21
Both two package return "application/wasm" when lookup .wasm files.
The text was updated successfully, but these errors were encountered: