mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-24 14:12:40 +00:00
Fix a dropped bracket
This commit is contained in:
@@ -2,7 +2,7 @@ module.exports = (req, res, next)=>{
|
||||
const isImageRequest = req.get('Accept')?.split(',')
|
||||
?.filter((h)=>!h.includes('q='))
|
||||
?.every((h)=>/image\/.*/.test(h));
|
||||
if(isImageRequest && !req.url?.startsWith('/staticImages/') {
|
||||
if(isImageRequest && !req.url?.startsWith('/staticImages/')) {
|
||||
return res.status(406).send({
|
||||
message : 'Request for image at this URL is not supported'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user