Skip to content

Update res var in NPM docs example #13

@aziznatour

Description

@aziznatour

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');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions