Skip to content
Browse files

accept a timeout of 0

  • Loading branch information...
1 parent 3fad448 commit a120dd7514e1511c1f261da34e3dd5edecc6889e @kkaefer kkaefer committed Apr 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/tilejson.js
View
2 lib/tilejson.js
@@ -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.
Something went wrong with that request. Please try again.