diff --git a/docs/index.md b/docs/index.md index 842c7633..7e91ccbf 100644 --- a/docs/index.md +++ b/docs/index.md @@ -86,9 +86,9 @@ RestClient::Response r = conn->head("/get") RestClient::Response r = conn->del("/delete") // set different content header for POST and PUT -conn->AppendHeader("Content-Type", "text/json") +conn->AppendHeader("Content-Type", "application/json") RestClient::Response r = conn->post("/post", "{\"foo\": \"bla\"}") -RestClient::Response r = conn->put("/put", "text/json", "{\"foo\": \"bla\"}") +RestClient::Response r = conn->put("/put", "application/json", "{\"foo\": \"bla\"}") // deinit RestClient. After calling this you have to call RestClient::init() // again before you can use it