From 85897f9101435cd0402b3ffdd15279045e93c5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Kr=C3=BDda?= Date: Sun, 10 Apr 2022 14:51:42 +0200 Subject: [PATCH] Ups...forgot to bump version in agent header --- src/helpers/UrllibHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/UrllibHelper.ts b/src/helpers/UrllibHelper.ts index 8fd0ba2..7d77267 100644 --- a/src/helpers/UrllibHelper.ts +++ b/src/helpers/UrllibHelper.ts @@ -16,7 +16,7 @@ import {XMLValidator} from "fast-xml-parser"; * @returns Promise */ export function createRequest(url: string, headers: IncomingHttpHeaders, secure = true, data = {}, bump = "0", timeout = 10, withBump = false, urllibOptions: RequestOptions = {}): Promise> { - headers["user-agent"] = "Mozilla/5.0 (" + process.platform + "; U; " + process.arch + "; en-us) TypeScript/" + process.version + " (KHTML, like Gecko) UniversalSpeedTest/2.0.3"; + headers["user-agent"] = "Mozilla/5.0 (" + process.platform + "; U; " + process.arch + "; en-us) TypeScript/" + process.version + " (KHTML, like Gecko) UniversalSpeedTest/2.0.4"; headers["cache-control"] = "no-cache"; return request(((url[0] == ":") ? (secure) ? "https" : "http" : "") + url + ((withBump) ? (((url.includes("?")) ? "&" : "?") + "x=" + performance.now() + bump) : ""), {