0
0
Fork 0

Misskey v13で動かない問題を修正

This commit is contained in:
Xeltica 2023-01-31 14:12:49 +09:00
parent 167270b1aa
commit 180823f3d2
3 changed files with 11 additions and 5 deletions

View file

@ -2,9 +2,6 @@ import axios from 'axios';
export const ua = `Mozilla/5.0 MisskeyTools +https://github.com/Xeltica/MisskeyTools Node/${process.version}`;
axios.defaults.headers['User-Agent'] = ua;
axios.defaults.validateStatus = (stat) => stat < 500;
/**
* Misskey APIを呼び出す
*/