Permalink
Browse files

fix(rest): Pass options to request method for methods without a body

  • Loading branch information...
doktordirk committed Dec 24, 2015
1 parent 7184b20 commit b7837ccbce3c17c7051b6cb1ce99a6149edf84a8
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, options);
return this.request('get', requestPath, null, options);
}

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

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

/**

0 comments on commit b7837cc

Please sign in to comment.