Node.js version (not finished yet)
This commit is contained in:
1 parent
4469aa0816
commit
c19d2dd7c1
18 files changed
+487
-562
No files matched your search
@@ -0,0 +1,13 @@
|
||||
const axios = require('axios');
|
||||
const { version, homepage } = require('../config.js');
|
||||
|
||||
axios.defaults.headers.common = {
|
||||
'User-Agent': `Mozilla/5.0 (compatible; UFW-AbuseIPDB-Reporter/${version}; +${homepage})`,
|
||||
'Accept': 'application/json',
|
||||
'Cache-Control': 'no-cache',
|
||||
'Connection': 'keep-alive',
|
||||
};
|
||||
|
||||
axios.defaults.timeout = 30000;
|
||||
|
||||
module.exports = axios;
|
||||
Reference in new issue
Block a user