mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2026-10-20 22:51:23 +08:00
+2
-2
@@ -36,7 +36,7 @@ const createRequest = (method, url, data, options) => {
|
||||
if (method.toUpperCase() == 'POST')
|
||||
headers['Content-Type'] = 'application/x-www-form-urlencoded'
|
||||
if (url.includes('music.163.com'))
|
||||
headers['Referer'] = 'http://music.163.com'
|
||||
headers['Referer'] = 'https://music.163.com'
|
||||
// headers['X-Real-IP'] = '118.88.88.88'
|
||||
|
||||
if (typeof options.cookie === 'object')
|
||||
@@ -63,7 +63,7 @@ const createRequest = (method, url, data, options) => {
|
||||
})
|
||||
headers['User-Agent'] =
|
||||
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36'
|
||||
url = 'http://music.163.com/api/linux/forward'
|
||||
url = 'https://music.163.com/api/linux/forward'
|
||||
}
|
||||
|
||||
const answer = { status: 500, body: {}, cookie: [] }
|
||||
|
||||
Reference in New Issue
Block a user