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
Remove charset=utf-8 default #223
Remove charset=utf-8 default #223
Conversation
Codecov Report
@@ Coverage Diff @@
## master #223 +/- ##
=========================================
- Coverage 75.86% 75.67% -0.2%
=========================================
Files 9 9
Lines 518 518
Branches 117 117
=========================================
- Hits 393 392 -1
Misses 45 45
- Partials 80 81 +1
Continue to review full report at Codecov.
|
Thanks for trying to make ecstatic better! I agree that it's alarming that images break because of this. A few minor concerns:
|
I wouldn't want to encourage a blanket Maybe an
See #220 (comment) :) |
I also stumbled on this because it prevents Firefox from using wasm streaming instantiation. Why is this a major version bump? We are not breaking the API. It is a bug fix isn't it? |
One person's bugfix is another's expected behavior 🤷♂️ |
Dredged up #44 which was the original issue--I think there are good reasons to specify the charset in at least some cases, hence why this exists in the first place. |
Yes and this patch delegates that charset decision to the mime library like it should. The charset should still be added to types that need it after that patch. |
A test that confirms that would be nice! |
Anyway, just to reiterate what I'm looking for around this and #218 :
|
I get that you're frustrated, btw, with this long-standing issue that prevents a lot of cool things from working right. The problem is that I don't want to merge casual code, but don't have the time to implement the right thing myself. All I can say is, be the change you wish to see in the world. |
I rolled these changes into #240, which addresses the concerns I had by exposing a way to set a custom content-type lookup function. Thanks! |
Fixes #220
This also fixes image loading issues when using
fetch()
+createImageBitmap()
in Firefox:http-party/http-server#296 (comment)