diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-05 16:52:07 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-02-10 15:40:20 -0800 |
commit | e9302c797f68c7e48b908b87b126045c8c5e5209 (patch) | |
tree | 044441cdb82ed8752401c43ead9e84018b067fbd /test/storage/server.js | |
parent | 7eb1a91c4e5134ecfbfb91b61a6622be40478af5 (diff) | |
download | qtlocation-mapboxgl-e9302c797f68c7e48b908b87b126045c8c5e5209.tar.gz |
[all] Don't interpret 404s on non-tile resources as "no content"
Diffstat (limited to 'test/storage/server.js')
-rwxr-xr-x | test/storage/server.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/storage/server.js b/test/storage/server.js index 0024330037..16b507daa9 100755 --- a/test/storage/server.js +++ b/test/storage/server.js @@ -84,6 +84,10 @@ app.get('/revalidate-etag', function(req, res) { revalidateEtagCounter++; }); +app.get('/no-content', function(req, res) { + res.status(204).send(); +}); + app.get('/not-found', function(req, res) { res.status(404).send('Not Found!'); }); |