fix status code check for url request

This commit is contained in:
Roman Shtylman
2014-04-19 19:33:52 -04:00
parent 3d54de851f
commit 87a23bf28c

View File

@@ -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);
}