Merge pull request #1273 from ceabqw/patch-1

Update request.js
This commit is contained in:
binaryify 2021-06-24 15:11:33 +08:00 committed by GitHub
commit 1cdc09226f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ const createRequest = (method, url, data, options) => {
if (url.includes('music.163.com'))
headers['Referer'] = 'https://music.163.com'
if (options.realIP) headers['X-Real-IP'] = options.realIP
// headers['X-Real-IP'] = '118.88.88.88'
headers['X-Real-IP'] = '118.88.88.88'
if (typeof options.cookie === 'object')
headers['Cookie'] = Object.keys(options.cookie)
.map(