Fixed a bug caused by the Content-Encoding header returned from the server in some environments

This commit is contained in:
ModMapper
2024-04-08 01:09:46 +09:00
parent 1b868ca579
commit 7f7d469606

View File

@@ -69,6 +69,7 @@ const reverseProxyFunc = async (req, res, next) => {
head.delete('content-security-policy-report-only');
head.delete('clear-site-data');
head.delete('Cache-Control');
head.delete('Content-Encoding');
const headObj = {};
for (let [k, v] of head) {
headObj[k] = v;