Permalink
Browse files

accept a timeout of 0

  • Loading branch information...
kkaefer committed Apr 11, 2012
1 parent 3fad448 commit a120dd7514e1511c1f261da34e3dd5edecc6889e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tilejson.js
View
@@ -94,7 +94,7 @@ TileJSON.prototype._open = function(uri) {
tilejson.data.id = path.basename(uri.pathname, path.extname(uri.pathname));
}
- tilejson.timeout = uri.query.timeout || 10000;
+ tilejson.timeout = 'timeout' in uri.query ? uri.query.timeout : 10000;
tilejson.open = true;
tilejson.emit('open', null, tilejson);
});

0 comments on commit a120dd7

Please sign in to comment.