Removes body data from http 204 response

This commit is contained in:
Isaac Besora Vilardaga 2019-01-07 13:48:22 +01:00
parent 245d9765a9
commit bca5191ad9

View file

@ -89,7 +89,7 @@ module.exports = function(options, repo, params, id, styles, publicUrl) {
source.getTile(z, x, y, function(err, data, headers) {
if (err) {
if (/does not exist/.test(err.message)) {
return res.status(204).send(err.message);
return res.status(204).send();
} else {
return res.status(500).send(err.message);
}