此Meteor服务器代码使用大气HTTP包。我收到来自response.content
的人类不可读字符,即使字符在浏览器中可读也很好
为什么以及如何解决这个问题?谢谢
const response = HTTP.call(method, url, {
timeout: 30000,
headers: header,
params: Params,
followRedirects: true
}
);
console.log(response.content);
响应标题有:
'content-type': 'text/html'
'content-encoding': 'gzip'
请求标头有:
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "en-US,en;q=0.5",
"Content-Type": "application/x-www-form-urlencoded"