名称変更とか
This commit is contained in:
parent
57e1ddcd3f
commit
116bade1c9
8 changed files with 54 additions and 18 deletions
|
@ -1,7 +1,7 @@
|
|||
import axios from 'axios';
|
||||
import _const from '../const';
|
||||
|
||||
export const ua = `Mozilla/5.0 misshaialertBot/${_const.version} +https://github.com/Xeltica/misshaialert Node/${process.version}`;
|
||||
export const ua = `Mozilla/5.0 MisskeyTools/${_const.version} +https://github.com/Xeltica/MisskeyTools Node/${process.version}`;
|
||||
|
||||
axios.defaults.headers['User-Agent'] = ua;
|
||||
axios.defaults.validateStatus = (stat) => stat < 500;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue