Update client.md

This commit is contained in:
Casper Rasmussen 2017-02-20 11:28:12 +00:00 committed by GitHub
parent 5a7c618a3b
commit c5ade0ef89
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
try drop.client.post("http://some-endpoint/json", headers: ["Auth": "Token my-auth-token"], body: myJSON.makeBody())
try drop.client.post("http://some-endpoint/json", headers: ["Content-Type": "application/json"], body: myJSON.makeBody())
```
### POST as x-www-form-urlencoded