Skip to content

Commit 814ad7c

Browse files
committed
fix: Java manifest should also respect the api host
1 parent 374fb6e commit 814ad7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/installer/java-runtime.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,10 @@ export function installJavaRuntimeWithJsonTask(options: InstallJavaRuntimeWithJs
354354
const target = options.target
355355
const downloadOptions = getDownloadBaseOptions(options)
356356
const jsonPath = join(destination, 'manifest.json')
357+
const manifestUrl = normalizeUrls(target.manifest.url, options.apiHost)
357358
await this.yield(new DownloadTask({
358359
destination: jsonPath,
359-
url: target.manifest.url,
360+
url: manifestUrl,
360361
validator: {
361362
algorithm: 'sha1',
362363
hash: target.manifest.sha1,

0 commit comments

Comments
 (0)