fix: Replace c.text by c.body to prevent Content-Type header being rewriten
`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:
parent
34c9df22e7
commit
9e38fe1327
1 changed files with 1 additions and 1 deletions
|
@ -119,7 +119,7 @@ dashManifest.get("/:videoId", async (c) => {
|
|||
captions,
|
||||
undefined,
|
||||
);
|
||||
return c.text(dashFile.replaceAll("&", "&"));
|
||||
return c.body(dashFile.replaceAll("&", "&"));
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Reference in a new issue