Skip to content

Commit

Permalink
[service] Fix hung reponse when no geopackage tile is drawn
Browse files Browse the repository at this point in the history
  • Loading branch information
newmanw committed Jun 12, 2023
1 parent c4e8da7 commit b8b5da2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/src/routes/layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ module.exports = function(app, security) {
GeoPackageUtility.getInstance()
.tile(req.layer, req.params.tableName, style, tileParams)
.then(tile => {
if (!tile) return res.status(404);
if (!tile) return res.sendStatus(404);
res.contentType('image/png');
res.send(Buffer.from(tile.split(',')[1], 'base64'))
})
Expand Down

0 comments on commit b8b5da2

Please sign in to comment.