fix(core_base/request): Strip unix: prefix when parsing unix socket URLs so socketPath is a clean filesystem path

This commit is contained in:
2025-11-16 23:41:24 +00:00
parent e14800f077
commit 8b52ca1021
6 changed files with 18 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ tap.test('node: should detect unix socket URLs correctly', async () => {
tap.test('node: should parse unix socket URLs correctly', async () => {
const result = CoreRequest.parseUnixSocketUrl('unix:/var/run/docker.sock:/v1.24/version');
expect(result.socketPath).toEqual('unix:/var/run/docker.sock');
expect(result.socketPath).toEqual('/var/run/docker.sock');
expect(result.path).toEqual('/v1.24/version');
});