Fixed a bug caused by the Content-Encoding header returned from the server in some environments
This commit is contained in:
@@ -69,6 +69,7 @@ const reverseProxyFunc = async (req, res, next) => {
|
|||||||
head.delete('content-security-policy-report-only');
|
head.delete('content-security-policy-report-only');
|
||||||
head.delete('clear-site-data');
|
head.delete('clear-site-data');
|
||||||
head.delete('Cache-Control');
|
head.delete('Cache-Control');
|
||||||
|
head.delete('Content-Encoding');
|
||||||
const headObj = {};
|
const headObj = {};
|
||||||
for (let [k, v] of head) {
|
for (let [k, v] of head) {
|
||||||
headObj[k] = v;
|
headObj[k] = v;
|
||||||
|
|||||||
Reference in New Issue
Block a user