mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
fix(api): 🐛 Explicitely set Content-Encoding to an empty value in proxy to avoid Traefik v3.0 errors
This commit is contained in:
parent
5efd832e64
commit
7f4e39e08b
|
|
@ -45,12 +45,13 @@ export default (app: Hono) =>
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return response(await media.arrayBuffer(), media.status, {
|
return response(media.body, media.status, {
|
||||||
"Content-Type":
|
"Content-Type":
|
||||||
media.headers.get("Content-Type") ||
|
media.headers.get("Content-Type") ||
|
||||||
"application/octet-stream",
|
"application/octet-stream",
|
||||||
"Content-Length": media.headers.get("Content-Length") || "0",
|
"Content-Length": media.headers.get("Content-Length") || "0",
|
||||||
"Content-Security-Policy": "",
|
"Content-Security-Policy": "",
|
||||||
|
"Content-Encoding": "",
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue