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

What mime type would be used with .wat (text format) file extensions? #1347

Closed
summercms opened this issue Jul 20, 2021 · 3 comments
Closed

Comments

@summercms
Copy link

summercms commented Jul 20, 2021

Did a search through this repo and couldn't my an answer.

The closet issue was found here: #573

I noticed @ericprud registered the IANA found here: #573 (comment)

.wat (text format)
.wasm (binary format)

.wasm uses application/wasm

What would .wat use?

I was expecting to see: text/wasm in IANA for the .wat file extension.

Should I use application/wasm for .wat file extensions?

Please advise.

p.s. Just working on a mime type app and want to register the correct mime-type to the .wat file extension.

@Ms2ger
Copy link
Collaborator

Ms2ger commented Jul 27, 2021

Certainly not application/wasm. .wat is not intended for interchange, so I'm not sure it needs a mime type.

@ericprud
Copy link

ericprud commented Aug 5, 2021

.wat is not intended for interchange, so I'm not sure it needs a mime type.

If you have to pick some media type, text.plain seems appropriate. If it isn't specific enough, i.e. some client is switching its behavior based on the media type for some foo.wat resource, it's probably being used for interchange and we have to revisit the above assumption.

@summercms
Copy link
Author

@ericprud Thank you, will go with text/plain

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

No branches or pull requests

3 participants