feat(noe supports unix socks): update

This commit is contained in:
Philipp Kunz 2018-07-16 23:49:35 +02:00
parent e9f1d5697f
commit 14f48c99d0

View File

@ -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);
});