From e4ad95a6dfaadf0151982a88ad3e4ea1e82a152a Mon Sep 17 00:00:00 2001 From: Arnaldo Capo Date: Mon, 27 Feb 2017 10:08:11 -0500 Subject: [PATCH] =?UTF-8?q?Added=20the=20node:=20attribute=20to=20the=20cl?= =?UTF-8?q?ient=20POST=20x-www-form-urlencoded=20example.=20It=E2=80=99s?= =?UTF-8?q?=20needed=20if=20you=20are=20going=20to=20use=20a=20variable=20?= =?UTF-8?q?as=20a=20value.=20=20Ex:=20Body.data(Node(node:=20[=E2=80=9Ccod?= =?UTF-8?q?e=E2=80=9D:code]=20=E2=80=A6..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/client.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/client.md b/http/client.md index 1a09c96d..9b4ae503 100644 --- a/http/client.md +++ b/http/client.md @@ -39,7 +39,7 @@ try drop.client.post("http://some-endpoint/json", headers: ["Content-Type": "app ```swift try drop.client.post("http://some-endpoint", headers: [ "Content-Type": "application/x-www-form-urlencoded" -], body: Body.data( Node([ +], body: Body.data( Node(node: [ "email": "mymail@vapor.codes" ]).formURLEncoded())) ```