mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-19 16:35:55 +00:00
fix status code check for url request
This commit is contained in:
@@ -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