fix: Replace c.text by c.body to prevent Content-Type header being rewriten (#58)

`c.text` sets the Content-Type to `text/plain; charset=UTF-8` regardless
of the value set by `c.header()`. Using c.body prevents that from happening.
This commit is contained in:
Fijxu 2025-03-02 19:12:12 -03:00 committed by GitHub
parent 5c8a975a04
commit 59fdecf3c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,7 +102,7 @@ dashManifest.get("/:videoId", async (c) => {
captions,
undefined,
);
return c.text(dashFile.replaceAll("&", "&"));
return c.body(dashFile.replaceAll("&", "&"));
}
});