mirror of https://github.com/vapor/docs.git
Fixed error with incorrect variable for refering to JSON Bytes
This commit is contained in:
parent
2eadbd5b35
commit
d399d405d2
|
|
@ -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))
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue