UserAgent
This commit is contained in:
parent
96e2635d2d
commit
f843d73604
1 changed files with 3 additions and 3 deletions
|
|
@ -1,15 +1,15 @@
|
|||
const { name, version, homepage } = require('../package.json');
|
||||
|
||||
const userAgent = `Mozilla/5.0 (compatible; ${name}/${version}; +${homepage})`;
|
||||
const UserAgent = `Mozilla/5.0 (compatible; ${name}/${version}; +${homepage})`;
|
||||
|
||||
const CLOUDFLARE = {
|
||||
'User-Agent': userAgent,
|
||||
'User-Agent': UserAgent,
|
||||
'Content-Type': 'application/json',
|
||||
'Authorization': `Bearer ${process.env.CLOUDFLARE_API_KEY}`,
|
||||
};
|
||||
|
||||
const ABUSEIPDB = {
|
||||
'User-Agent': userAgent,
|
||||
'User-Agent': UserAgent,
|
||||
'Content-Type': 'application/json',
|
||||
'Key': process.env.ABUSEIPDB_API_KEY,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue