Text assets's content-type is always text/html #1218
Labels
Good First Issue
A beginner-friendly issue, great for first-time contributors
Help Wanted
Would love additional input or contributions!
Priority:Medium
Moderately important, should be completed in a fair timeframe
Uh oh!
There was an error while loading. Please reload this page.
Nature of issue?
Details about the bug:
I found getFileContent function at /p5.js-web-editor/server/controllers/file.controller.js
But there are nothing considered about content-type and rely on default behavior.
Express official document says
https://expressjs.com/en/api.html#res.send
I think that it should be text/javascript(or application/javascript) for .js, application/json for .json and so on.
Thank you.
The text was updated successfully, but these errors were encountered: