Merge pull request #90 from zigomir/patch-1

Call `http.del` in httpDelete function
This commit is contained in:
Yoshua Wuyts
2016-06-27 16:22:17 +02:00
committed by GitHub
+1 -1
View File
@@ -388,7 +388,7 @@ function postJson (state, action, send) {
function httpDelete (state, action, send) {
const body = { foo: 'bar' }
http.post('/my-endpoint', { json: body }, function (err, res, body) {
http.del('/my-endpoint', { json: body }, function (err, res, body) {
if (err) return send('app:error', { payload: err.message })
if (res.statusCode !== 200) {
return send('app:error', { payload:'something went wrong' })