From 8860bdaf189ea3f8b839942b5499001f583efc51 Mon Sep 17 00:00:00 2001 From: Almir Kadric Date: Fri, 19 Sep 2014 09:54:21 +0000 Subject: [PATCH] updated according to pr comments --- lib/https/post.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/https/post.js b/lib/https/post.js index 2cc13ba..f3114f3 100644 --- a/lib/https/post.js +++ b/lib/https/post.js @@ -22,7 +22,9 @@ module.exports = function (url, options, cb) { }; } } catch (error) { - cb(error); + return process.nextTick(function () { + cb(error); + }); } // Set method to POST and call it