From c2c32350ab67d45fec9a2b52136c4571084f34bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=BDiga=20Vidic?= Date: Sun, 26 Jun 2016 20:28:35 -0700 Subject: [PATCH] Call `http.del` in httpDelete function --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1bc6cee..7b92357 100644 --- a/README.md +++ b/README.md @@ -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' })