We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
res
Hello, the NPM README/docs has an invalid example code
https://www.npmjs.com/package/http-post#examples
http.post('http://localhost/postscript.php', { name: 'Sam', email: '[email protected]' }, function(res){ response.setEncoding('utf8'); res.on('data', function(chunk) { console.log(chunk); }); });
response.setEncoding('utf8'); should be res.setEncoding('utf8');
response.setEncoding('utf8');
res.setEncoding('utf8');
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hello, the NPM README/docs has an invalid example code
https://www.npmjs.com/package/http-post#examples
response.setEncoding('utf8');
should beres.setEncoding('utf8');
The text was updated successfully, but these errors were encountered: