Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
don't send empty Prefer header
Browse files Browse the repository at this point in the history
  • Loading branch information
letmaik committed Mar 24, 2016
1 parent 86937e2 commit 1064646
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ') + '"'
Expand Down

0 comments on commit 1064646

Please sign in to comment.