Remove user-agent from HttpClient

This commit is contained in:
Foivos Zakkak 2023-11-03 14:08:39 +02:00 committed by Fabio Niephaus
parent 2a93b69fdf
commit 1c219f5b27

View File

@ -59,7 +59,7 @@ export async function getLatestMandrelReleaseUrl(
javaVersion: string javaVersion: string
): Promise<string> { ): Promise<string> {
const url = `${DISCO_API_BASE}?jdk_version=${javaVersion}&distribution=${c.DISTRIBUTION_MANDREL}&architecture=${c.JDK_ARCH}&operating_system=${c.JDK_PLATFORM}&latest=per_distro` const url = `${DISCO_API_BASE}?jdk_version=${javaVersion}&distribution=${c.DISTRIBUTION_MANDREL}&architecture=${c.JDK_ARCH}&operating_system=${c.JDK_PLATFORM}&latest=per_distro`
const _http = new httpClient.HttpClient('http-client-tests') const _http = new httpClient.HttpClient()
const response = await _http.getJson<JdkData>(url) const response = await _http.getJson<JdkData>(url)
if (response.statusCode !== 200) { if (response.statusCode !== 200) {
throw new Error( throw new Error(