From d399d405d2d3efc59073a583ea6eaf08a71b461f Mon Sep 17 00:00:00 2001 From: Doron Katz Date: Sun, 5 Feb 2017 10:07:22 -0800 Subject: [PATCH] Fixed error with incorrect variable for refering to JSON Bytes --- http/client.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/client.md b/http/client.md index 7e59a180..60ab12ba 100644 --- a/http/client.md +++ b/http/client.md @@ -32,7 +32,7 @@ In addition to `GET` requests, Vapor's client provides support for most common H ### POST as json ```swift -let bytes = myJSON.makeBytes() +let jsonBytes = myJSON.makeBytes() try drop.client.post("http://some-endpoint/json", headers: ["Auth": "Token my-auth-token"], body: .data(jsonBytes)) ```