fix: pixiv refresh token error (#2631)

Ref: DIYgod#2608
This commit is contained in:
BrightSphere 2019-07-16 21:47:18 +08:00 committed by DIYgod
parent 61b5af5f2c
commit 1df21ab59b
1 changed files with 4 additions and 1 deletions

View File

@ -57,7 +57,10 @@ async function refreshToken(refresh_token) {
data.append(key, element);
}
}
const response = await got.post('https://oauth.secure.pixiv.net/auth/token', data, {
const response = await got({
method: 'post',
url: 'https://oauth.secure.pixiv.net/auth/token',
data: data,
headers: {
...maskHeader,
...data.getHeaders(),