Skip to content

Commit fdf722b

Browse files
authored
Merge pull request #174 from aknoerig/patch-1
[docs] use correct json mime type in example
2 parents 047565e + a5b33ac commit fdf722b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ RestClient::Response r = conn->head("/get")
8686
RestClient::Response r = conn->del("/delete")
8787

8888
// set different content header for POST and PUT
89-
conn->AppendHeader("Content-Type", "text/json")
89+
conn->AppendHeader("Content-Type", "application/json")
9090
RestClient::Response r = conn->post("/post", "{\"foo\": \"bla\"}")
91-
RestClient::Response r = conn->put("/put", "text/json", "{\"foo\": \"bla\"}")
91+
RestClient::Response r = conn->put("/put", "application/json", "{\"foo\": \"bla\"}")
9292

9393
// deinit RestClient. After calling this you have to call RestClient::init()
9494
// again before you can use it

0 commit comments

Comments
 (0)