Return 404 for negative zoom levels on static endpoint
This commit is contained in:
parent
7c28bf2b21
commit
a8fd1b38b7
1 changed files with 4 additions and 0 deletions
|
@ -462,6 +462,10 @@ module.exports = function(options, repo, params, id, dataResolver) {
|
|||
scale = getScale(req.params.scale),
|
||||
format = req.params.format;
|
||||
|
||||
if (z < 0) {
|
||||
return res.status(404).send('Invalid zoom');
|
||||
}
|
||||
|
||||
var path = extractPathFromQuery(req.query);
|
||||
var overlay = renderOverlay(z, x, y, bearing, pitch, w, h, scale,
|
||||
path, req.query);
|
||||
|
|
Loading…
Reference in a new issue