unblock-netease-music
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -77,2 +77,4 @@ var request = require('request'); | ||
req.url = 'http://' + ip + req.url; | ||
} else { | ||
req.url = req.url.replace('music.163.com', ip); | ||
} | ||
@@ -82,2 +84,4 @@ | ||
// console.log(req.headers); | ||
var options = { | ||
@@ -87,4 +91,5 @@ url: req.url, | ||
method: "get", | ||
followRedirect: false, | ||
timeout: 10000 | ||
} | ||
}; | ||
@@ -103,6 +108,7 @@ request(options) | ||
if (req.method == 'POST') { | ||
var url = ''; | ||
if (!/^http/.test(req.url)) { | ||
var url = 'http://' + ip + req.url; | ||
url = 'http://' + ip + req.url; | ||
} else { | ||
var url = req.url; | ||
url = req.url.replace('music.163.com', ip); | ||
} | ||
@@ -109,0 +115,0 @@ var rawBody = yield getRawBody(_this.req, { |
{ | ||
"name": "unblock-netease-music", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "start": "node ./bin/www" |
@@ -8,2 +8,4 @@ # UnblockNeteaseMusic | ||
[![NPM](https://nodei.co/npm/unblock-netease-music.png?downloads=true&downloadRank=true)](https://nodei.co/npm/unblock-netease-music/) | ||
English version [here](https://github.com/ITJesse/UnblockNeteaseMusic/blob/master/README_en.md). | ||
@@ -52,3 +54,3 @@ | ||
P.S. 请务必不要更新客户端到 1.2.3 以上的版本。 下载连接: http://pan.baidu.com/s/1kUDqgWB | ||
P.S. 请务必不要更新客户端到 1.4.3 以上的版本。 [下载连接](http://s1.music.126.net/download/osx/NeteaseMusic_1.4.3_452_web.dmg) | ||
@@ -55,0 +57,0 @@ ## Android 用户 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27317
599
154