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.
2 parents d261a7e + a0bae0b commit b29416dCopy full SHA for b29416d
1 file changed
src/middleware/packages/ldp/services/link-header/actions/get.js
@@ -12,9 +12,11 @@ module.exports = {
12
for (const actionName of this.registeredActionNames) {
13
const params = await ctx.call(actionName, { uri });
14
15
- if (!params.uri) throw new Error(`An uri should be returned from the ${actionName} action`);
+ if (params) {
16
+ if (!params.uri) throw new Error(`An uri should be returned from the ${actionName} action`);
17
- linkHeader.set(params);
18
+ linkHeader.set(params);
19
+ }
20
}
21
22
// Get container-specific headers (if any)
0 commit comments