Update request.js

This commit is contained in:
ceabq 2021-06-18 19:03:31 -07:00 committed by GitHub
parent 6a293401c2
commit 25d1e3ae88
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(