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