Skip to content

Commit

Permalink
Update images.js
Browse files Browse the repository at this point in the history
  • Loading branch information
instification authored Jul 18, 2023
1 parent 16f3217 commit 40f125b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/express-middleware/images.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import express from 'express';
import { getAPIResourceWithAuth } from '@plone/volto/helpers';

const HEADERS = ['content-type', 'content-disposition', 'cache-control'];
const HEADERS = [
'content-type',
'content-disposition',
'cache-control',
'X-Sendfile',
'X-Accel-Redirect'

Check failure on line 9 in src/express-middleware/images.js

View workflow job for this annotation

GitHub Actions / ESlint (18.x)

Insert `,`
];

function imageMiddlewareFn(req, res, next) {
getAPIResourceWithAuth(req)
Expand Down

0 comments on commit 40f125b

Please sign in to comment.