diff --git a/src/api.js b/src/api.js index ad0c2cb..b35d21b 100644 --- a/src/api.js +++ b/src/api.js @@ -386,6 +386,9 @@ export class API { if (options.range) { uris.push(Range) } + if (uris.length === 0) { + return {} + } return { Prefer: 'return=representation; ' + 'include="' + uris.join(' ') + '"'