handle unhandled errors, add contact to user agent
This commit is contained in:
parent
c9168d4e28
commit
63021515e2
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@squeebot/core",
|
||||
"version": "3.3.7",
|
||||
"version": "3.3.8",
|
||||
"description": "Squeebot v3 core for the execution environment",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
|
@ -29,7 +29,7 @@ export function httpGET(
|
||||
headers: {
|
||||
Accept: '*/*',
|
||||
'Accept-Language': 'en-US',
|
||||
'User-Agent': 'Squeebot/Commons-3.0.0',
|
||||
'User-Agent': 'Squeebot/Commons-3.0.0 squeebot.visit@lunasqu.ee',
|
||||
},
|
||||
host: parsed.hostname,
|
||||
path: `${parsed.pathname}${parsed.search}`,
|
||||
@ -132,7 +132,7 @@ export function httpPOST(
|
||||
const opts: RequestOptions = {
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
'User-Agent': 'Squeebot/Commons-3.0.0',
|
||||
'User-Agent': 'Squeebot/Commons-3.0.0 squeebot.visit@lunasqu.ee',
|
||||
},
|
||||
host: parsed.host,
|
||||
method: 'POST',
|
||||
|
Loading…
Reference in New Issue
Block a user