fix(api): 🐛 Explicitely set Content-Encoding to an empty value in proxy to avoid Traefik v3.0 errors

This commit is contained in:
Jesse Wierzbinski 2024-06-05 16:35:25 -10:00
parent 5efd832e64
commit 7f4e39e08b
No known key found for this signature in database

View file

@ -45,12 +45,13 @@ export default (app: Hono) =>
},
});
return response(await media.arrayBuffer(), media.status, {
return response(media.body, media.status, {
"Content-Type":
media.headers.get("Content-Type") ||
"application/octet-stream",
"Content-Length": media.headers.get("Content-Length") || "0",
"Content-Security-Policy": "",
"Content-Encoding": "",
});
},
);