0
0
Fork 0

不要なものを削除

This commit is contained in:
Xeltica 2021-10-18 01:03:06 +09:00
parent f64c0d0bd5
commit 3f76fc2b14
4 changed files with 3 additions and 17 deletions

View file

@ -1,7 +1,6 @@
import axios from 'axios';
import _const from '../const';
export const ua = `Mozilla/5.0 MisskeyTools/${_const.version} +https://github.com/Xeltica/MisskeyTools Node/${process.version}`;
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;