We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31fa2dc commit 9a3a0b4Copy full SHA for 9a3a0b4
lib/documentLoaders/node.js
@@ -115,7 +115,8 @@ module.exports = ({
115
if(alternate &&
116
alternate.type == 'application/ld+json' &&
117
// eslint-disable-next-line max-len
118
- !(res.headers['content-type'] || '').match(/^application\/(\w*\+)?json$/)) {
+ !(res.headers['content-type'] || '')
119
+ .match(/^application\/(\w*\+)?json$/)) {
120
res.headers.location = prependBase(url, alternate.target);
121
}
122
0 commit comments