From 8f0dc2fd747f35cab9441a3d39facbafc1226542 Mon Sep 17 00:00:00 2001 From: hamza zia Date: Fri, 20 Feb 2015 12:19:29 +0800 Subject: [PATCH] fixed error in README example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1213c28..b86edcc 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ To work with JSON, set `options.json` to `true`. Request will set the `Content-T ```javascript request({method:'POST', url:'/db', body:'{"relaxed":true}', json:true}, on_response) -function on_response(er, response, body) { +function on_response(er, response, result) { if(er) throw er if(result.ok)