mirror of
https://github.com/versia-pub/server.git
synced 2026-01-26 12:16:01 +01:00
fix(api): 🐛 Another attempt at a fix
This commit is contained in:
parent
a319d1e628
commit
5efd832e64
|
|
@ -41,11 +41,11 @@ export default (app: Hono) =>
|
||||||
|
|
||||||
const media = await fetch(id, {
|
const media = await fetch(id, {
|
||||||
headers: {
|
headers: {
|
||||||
"Accept-Encoding": "identity",
|
"Accept-Encoding": "br",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return response(media.body, media.status, {
|
return response(await media.arrayBuffer(), media.status, {
|
||||||
"Content-Type":
|
"Content-Type":
|
||||||
media.headers.get("Content-Type") ||
|
media.headers.get("Content-Type") ||
|
||||||
"application/octet-stream",
|
"application/octet-stream",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue