From 63021515e25d9da18473f8b961d3d8294daebc9a Mon Sep 17 00:00:00 2001 From: Evert Prants Date: Thu, 25 Aug 2022 21:17:43 +0300 Subject: [PATCH] handle unhandled errors, add contact to user agent --- package.json | 2 +- src/common/http.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 62620d9..7a1b16b 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/common/http.ts b/src/common/http.ts index 4a30f7f..7b1c568 100644 --- a/src/common/http.ts +++ b/src/common/http.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',