diff --git a/README.md b/README.md index f19e0aa..77b587b 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ int main(void) }); svr.Get("/stop", [&](const Request& req, Response& res) { - svr.stop(); + svr.stop(); }); svr.listen("localhost", 1234); @@ -130,15 +130,6 @@ res = cli.Post("/post", "text", "text/plain"); res = cli.Post("/person", "name=john1¬e=coder", "application/x-www-form-urlencoded"); ``` -### POST with HTTP headers - -```c++ - httplib::Headers headers = { - { "Content-Length", "5" } - }; - auto res = cli.Post("/hi", headers, "hello", "text/plain"); -``` - ### POST with parameters ```c++