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) : ""), {