File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -114,13 +114,15 @@ module.exports = ({
114114 alternate = linkHeaders [ 'alternate' ] ;
115115 if ( alternate &&
116116 alternate . type == 'application/ld+json' &&
117+ // eslint-disable-next-line max-len
117118 ! ( res . headers [ 'content-type' ] || '' ) . match ( / ^ a p p l i c a t i o n \/ ( \w * \+ ) ? j s o n $ / ) ) {
118119 res . headers . location = prependBase ( url , alternate . target ) ;
119120 }
120121 }
121122
122123 // handle redirect
123- if ( ( alternate || res . statusCode >= 300 && res . statusCode < 400 ) && res . headers . location ) {
124+ if ( ( alternate ||
125+ res . statusCode >= 300 && res . statusCode < 400 ) && res . headers . location ) {
124126 if ( redirects . length === maxRedirects ) {
125127 throw new JsonLdError (
126128 'URL could not be dereferenced; there were too many redirects.' ,
You can’t perform that action at this time.
0 commit comments