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:
@@ -268,6 +268,7 @@ function getImage({ previewBackend, label }) {
|
||||
res.set(headers);
|
||||
}
|
||||
|
||||
res.statusCode = 200;
|
||||
res.body = image;
|
||||
|
||||
next();
|
||||
@@ -287,6 +288,7 @@ function getImage({ previewBackend, label }) {
|
||||
res.set(headers);
|
||||
}
|
||||
|
||||
res.statusCode = 200;
|
||||
res.body = image;
|
||||
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user