Permalink
Browse files

fix(rest): Pass along undefiend for empty body; null is object.

  • Loading branch information...
RWOverdijk committed Dec 25, 2015
1 parent ff07896 commit b10cd529c013bcda7159feee3e7b6eb95c848937
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/rest.js
@@ -66,7 +66,7 @@ export class Rest {
requestPath += typeof criteria !== 'object' ? `/${criteria}` : '?' + qs.stringify(criteria);
}

return this.request('get', requestPath, null, options);
return this.request('get', requestPath, undefined, options);
}

/**
@@ -118,7 +118,7 @@ export class Rest {
requestPath += `/${criteria}`;
}

return this.request('delete', requestPath, null, options);
return this.request('delete', requestPath, undefined, options);
}

/**

0 comments on commit b10cd52

Please sign in to comment.