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

Enforce js extension on erb tmp file #189

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kassi
Copy link

@kassi kassi commented Feb 1, 2021

After receiving a browser warning, that livereload.js is served with a wring mime type (text/plain) I encountered, that the tempfile being served doesn't end with js and thus isn't detected correctly.
This fix ensures a tmpfile extension of .js and the mime type being delivered correctly.

No adaption to the tests because this particular part isn't tested (no integration test available) and everything is stubbed out.
IMO there should be a test for the correct extension because this is essential for the functionality outside of the module, but this may contradict to the initial author's intention for stubbing out any use of external classes.

Let me know what you think and if you want to change this behavior.

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

Successfully merging this pull request may close these issues.

None yet

1 participant