From 7bd7ac62144d50bb77a3679f84eb0bbb03f1399a Mon Sep 17 00:00:00 2001 From: Lumither Tao Date: Thu, 19 Sep 2024 14:53:55 -0700 Subject: [PATCH] update --- netease_music_unlock.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netease_music_unlock.js b/netease_music_unlock.js index abb70bf..b1e17fc 100644 --- a/netease_music_unlock.js +++ b/netease_music_unlock.js @@ -17,7 +17,7 @@ // You can optional change the response headers at the same time by using $done({body: modifiedBody, headers: modifiedHeaders}); only change the response headers is not allowed for script-response-body. The modifiedHeaders can be copied and modified from $response.headers, please do not change the content length, type and encoding field. // Response status can also be optional changed by using $done({body: modifiedBody, headers: modifiedHeaders, status: modifiedStatus}), the modifiedStatus should be like "HTTP/1.1 200 OK" -var body = $request.body; +var body = $request.headers; var obj = JSON.parse(body); obj['X-Real-IP'] = "219.133.168.5";