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

Commit

Permalink
fix: send data with delete requests (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
notrab authored Dec 12, 2018
1 parent d46fe7e commit cb7362e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class createClient {
return this.request('PUT', path, data, headers)
}

delete(path: string, headers: Headers) {
return this.request('DELETE', path, headers)
delete(path: string, data: object, headers: Headers) {
return this.request('DELETE', path, data, headers)
}
}

0 comments on commit cb7362e

Please sign in to comment.