Commit 2589090e authored by nanahira's avatar nanahira

don't encode back to utf16

parent c4edd31e
Pipeline #197 passed with stages
in 1 minute and 11 seconds
......@@ -25,7 +25,7 @@ app.use('/', proxy("https://downloads.dell.com,", {
xmlObject.Manifest.$.baseLocation = baseLocation;
xmlObject.Manifest.$.baseLocationAccessProtocols = baseLocationAccessProtocols;
const replaceContent = xmlBuilder.buildObject(xmlObject);
return await gzip(iconv.encode(replaceContent, "utf16"));
return await gzip(Buffer.from(replaceContent, "utf-8"));
}
return proxyResData;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment