Removes body data from http 204 response
This commit is contained in:
parent
245d9765a9
commit
bca5191ad9
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ module.exports = function(options, repo, params, id, styles, publicUrl) {
|
||||||
source.getTile(z, x, y, function(err, data, headers) {
|
source.getTile(z, x, y, function(err, data, headers) {
|
||||||
if (err) {
|
if (err) {
|
||||||
if (/does not exist/.test(err.message)) {
|
if (/does not exist/.test(err.message)) {
|
||||||
return res.status(204).send(err.message);
|
return res.status(204).send();
|
||||||
} else {
|
} else {
|
||||||
return res.status(500).send(err.message);
|
return res.status(500).send(err.message);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue