mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-10-31 20:59:08 +00:00
fix status code check for url request
This commit is contained in:
1 parent
3d54de851f
commit
87a23bf28c
1 file changed
+1
-1
@@ -199,7 +199,7 @@ Tunnel.prototype._init = function(cb) {
|
|||||||
return setTimeout(get_url, 1000);
|
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');
|
var err = new Error((body && body.message) || 'localtunnel server returned an error, please try again');
|
||||||
return cb(err);
|
return cb(err);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user