fix: Replace c.text by c.body to prevent Content-Type header being rewriten
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 1m13s

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 for happening.
This commit is contained in:
Fijxu 2025-03-01 19:41:26 -03:00
parent 34c9df22e7
commit f70ab5545c
Signed by: Fijxu
GPG key ID: 32C1DDF333EDA6A4

View file

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