Closed dfranek-pix closed 7 months ago
When the HTML is modified the Content-Type header is missing the charset. This leads to an incorrect rendering of the page:
Content-Type
The error is in this line: https://github.com/aem-vite/vite-aem-plugin/blob/cbc7c413b321d519acdfb0bb2aeb0887e2cebf65/src/helpers.ts#L156
This should be changed to text/html;charset=utf-8 (or whatever the server sends)
text/html;charset=utf-8
This error also exists in the version for Vite 4, if possible it would be great if it cloud be fixed there also.
@dfranek-pix Thanks for raising this issue. This is fixed in v5.0.3.
Describe the bug
When the HTML is modified the
Content-Type
header is missing the charset. This leads to an incorrect rendering of the page:The error is in this line: https://github.com/aem-vite/vite-aem-plugin/blob/cbc7c413b321d519acdfb0bb2aeb0887e2cebf65/src/helpers.ts#L156
This should be changed to
text/html;charset=utf-8
(or whatever the server sends)This error also exists in the version for Vite 4, if possible it would be great if it cloud be fixed there also.