* Update HttpNodeJs.hx Request can error when there is no connection * passes error
@@ -123,7 +123,9 @@ class HttpNodeJs extends haxe.http.HttpBase {
req.setHeader("Content-Length", '${postBytes.length}');
req.write(Buffer.from(postBytes.getData()));
}
-
+ req.on('error', function(e) {
+ onError(e);
+ });
req.end();