From b1072f5a79f3e823bff5a96a928291b275f3358f Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Fri, 12 Jan 2018 13:31:23 +0200 Subject: [PATCH] Update httpPost.md --- snippets/httpPost.md | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/snippets/httpPost.md b/snippets/httpPost.md index f73b07277..04c84846e 100644 --- a/snippets/httpPost.md +++ b/snippets/httpPost.md @@ -21,24 +21,6 @@ const httpPost = (url, callback, data = null, err = console.error) => { ``` ```js - - - - - - - - - - - - - - - - - - const newPost = { "userId": 1, "id": 1337, @@ -46,7 +28,7 @@ const newPost = { "body": "bar bar bar" }; const data = JSON.stringify(newPost); -httpPost('https://jsonplaceholder.typicode.com/posts', console.log, data; /* +httpPost('https://jsonplaceholder.typicode.com/posts', console.log, data); /* Logs: { "userId": 1, "id": 1337,