Skip to content

Commit

Permalink
Fixing link header regression, updating dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed May 1, 2020
1 parent 45057f3 commit 3233d4b
Show file tree
Hide file tree
Showing 3 changed files with 601 additions and 344 deletions.
2 changes: 1 addition & 1 deletion lib/utility.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,7 @@ function hypermedia (req, res, rep) {
}
}

headers.link = keysort(links, "rel, uri").map(i => `<${i.uri}>; rel="${i.rel}"`).join(", ");
res.header("link", keysort(links, "rel, uri").map(i => `<${i.uri}>; rel="${i.rel}"`).join(", "));

if (exists && rep.links !== void 0) {
rep.links = links;
Expand Down
Loading

0 comments on commit 3233d4b

Please sign in to comment.