fix(core_base/request): Strip unix: prefix when parsing unix socket URLs so socketPath is a clean filesystem path
This commit is contained in:
@@ -25,7 +25,7 @@ tap.test('deno: should detect unix socket URLs correctly', async () => {
|
||||
|
||||
tap.test('deno: 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');
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user