Set 404 as defautl status code and set the proper status code fir the response at very same time that the response body
This commit is contained in:
@@ -109,6 +109,7 @@ function getPreviewImageByCenter (previewBackend) {
|
||||
|
||||
res.set('Content-Type', headers['Content-Type'] || `image/${format}`);
|
||||
|
||||
res.statusCode = 200;
|
||||
res.body = image;
|
||||
|
||||
next();
|
||||
@@ -144,6 +145,7 @@ function getPreviewImageByBoundingBox (previewBackend) {
|
||||
|
||||
res.set('Content-Type', headers['Content-Type'] || `image/${format}`);
|
||||
|
||||
res.statusCode = 200;
|
||||
res.body = image;
|
||||
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user