Skip to content

Commit

Permalink
Allow X-Robots-Tag header in images/files middleware (#6043) (#6044)
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh authored May 23, 2024
1 parent 0684db2 commit b2d4f2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/6043.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow X-Robots-Tag header in images/files middleware @sneridagh
1 change: 1 addition & 0 deletions src/express-middleware/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const HEADERS = [
'content-type',
'x-sendfile',
'x-accel-redirect',
'x-robots-tag',
];

function filesMiddlewareFn(req, res, next) {
Expand Down
1 change: 1 addition & 0 deletions src/express-middleware/images.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const HEADERS = [
'cache-control',
'x-sendfile',
'x-accel-redirect',
'x-robots-tag',
];

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

0 comments on commit b2d4f2a

Please sign in to comment.