From 87a23bf28c17b2f18d1e9a0e47e8992c5a9b56ba Mon Sep 17 00:00:00 2001 From: Roman Shtylman Date: Sat, 19 Apr 2014 19:33:52 -0400 Subject: [PATCH] fix status code check for url request --- client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.js b/client.js index 7d0d567..a816655 100644 --- a/client.js +++ b/client.js @@ -199,7 +199,7 @@ Tunnel.prototype._init = function(cb) { return setTimeout(get_url, 1000); } - if (res.status !== 200) { + if (res.statusCode !== 200) { var err = new Error((body && body.message) || 'localtunnel server returned an error, please try again'); return cb(err); }