Closed OmgImAlexis closed 4 years ago
This works with requests for example.
const request = require('request');
request.post('http://unix:/var/run/graphql-api.sock:/graphql', {
headers: {
'x-api-key': 'test123'
},
body: 'this is the body'
}, (error, response) => {
if (error) {
console.error(error);
}
console.info(response);
});
You're using an outdated version of Got. Please try upgrading to Got 11.
Describe the bug
Actual behavior
When trying this against any HTTP endpoint the request works as expected.
Expected behavior
No error and the request to finish.
Code to reproduce
Removing the
body
options stops the error being thrown.Checklist