feat(noe supports unix socks): update
This commit is contained in:
parent
e9f1d5697f
commit
14f48c99d0
@ -23,7 +23,12 @@ tap.test('should post a JSON document over http', async () => {
|
||||
});
|
||||
|
||||
tap.test('should deal with unix socks', async () => {
|
||||
const socketResponse = await smartrequest.request('http://unix:/var/run/docker.sock:/containers');
|
||||
const socketResponse = await smartrequest.request('http://unix:/var/run/docker.sock:/containers/json', {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"Host": "docker.sock"
|
||||
}
|
||||
});
|
||||
console.log(socketResponse.body);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user