Merge pull request #339 from ibesora/master

Removes body data from http 204 response
This commit is contained in:
Petr Sloup 2019-01-07 14:16:30 +01:00 committed by GitHub
commit 63483a3155
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}