fix: 修复代理无法获取音乐链接

This commit is contained in:
ElyPrism 2026-06-06 23:17:40 +08:00
parent 498023692f
commit e5ff7d07a6
No known key found for this signature in database
2 changed files with 3 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "api-clawer",
"version": "0.2.0",
"version": "0.3.0",
"description": "网易云音乐客户端抓包工具",
"main": "src/server/app.js",
"scripts": {

View File

@ -363,6 +363,8 @@ hook.request.after = (ctx) => {
.then((buffer) => {
if (!buffer.length) return Promise.reject();
proxyRes.body = buffer;
// 🔧 移除 Content-Encoding 头,因为响应体已经被解压
delete proxyRes.headers['content-encoding'];
return buffer; // 继续传递 buffer
})
.then((buffer) => {