Ultraviolet
Ultraviolet copied to clipboard
for support better text decode
Expected Behavior
noraml decode html text,even respon header "Content-Type" not set "charset=utf-8"
Current Behavior
without english page,some other language maybe have text decode problem
Possible Solution
src/uv.sw.js line 241-242 to add:
if (responseCtx.headers["content-type"].includes("text/html")) {
responseCtx.headers["content-type"] = "text/html;charset=utf-8";
}
You should open a pull request for this