Don't handle response errors separately in osrm-runner
This commit is contained in:
parent
9695fa7941
commit
105709cb43
@ -16,8 +16,6 @@ const run_query = (query_options, filters, callback) => {
|
||||
let tic = () => 0.;
|
||||
http.request(query_options, function (res) {
|
||||
let body = '', ttfb = tic();
|
||||
if (res.statusCode != 200)
|
||||
return callback(query_options.path, res.statusCode, ttfb);
|
||||
|
||||
res.setEncoding('utf8');
|
||||
res.on('data', function (chunk) {
|
||||
|
Loading…
Reference in New Issue
Block a user