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

[BUG]Context.ServeFile send 'application/wasm' with a wrong extra field #1440

Closed
rocket049 opened this issue Feb 3, 2020 · 1 comment
Closed

Comments

@rocket049
Copy link

Describe the bug
Context.ServeFile send 'application/wasm' with a wrong extra field

To Reproduce
Steps to reproduce the behavior:

app.Get("/{key:path}", func(ctx iris.Context){
   ...  //get filename :  xx.wasm
    ctx.ServeFile(filename, ctx.ClientSupportsGzip())
})

Expected behavior

The content-type must be 'application/wasm'.

But it will be 'application/wasm; charset=UTF-8' now.

The problem is FireFox72 will report error 'unsupported mime type'.

Otherwise, chrome can work well.

@kataras
Copy link
Owner

kataras commented Feb 3, 2020

@rocket049 thanks for the report! It's fixed now.

github-actions bot pushed a commit to goproxies/github.com-kataras-iris that referenced this issue Jul 27, 2020
Former-commit-id: aaf275d4eedca95ef8d8f8ef79b1ff2eecf2fbc9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants