handle unhandled errors, add contact to user agent

This commit is contained in:
Evert Prants 2022-08-25 21:17:43 +03:00
parent c9168d4e28
commit 63021515e2
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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',