Merge pull request #117 from doronkatz/feature/CLIENT_DOCUMENTATION_ERROR

Fixed error with incorrect variable for refering to JSON Bytes
This commit is contained in:
Logan Wright 2017-02-06 09:35:27 +01:00 committed by GitHub
commit fc4890d28b
1 changed files with 1 additions and 1 deletions

View File

@ -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))
```