Skip to content

Commit 1b65cef

Browse files
MageMasherdavidlehn
authored andcommitted
Fix typo, res (doesn't exist) to req
1 parent 2c3d835 commit 1b65cef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/documentLoaders/xhr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ module.exports = ({
7676
}
7777
if(linkHeader && contentType !== 'application/ld+json') {
7878
// only 1 related link header permitted
79-
const linkHeaders = parseLinkHeader(res.headers.link);
79+
const linkHeaders = parseLinkHeader(req.headers.link);
8080
const linkedContext = linkHeaders[LINK_HEADER_CONTEXT];
8181
if(Array.isArray(linkedContext)) {
8282
throw new JsonLdError(

0 commit comments

Comments
 (0)