Skip to content

Commit e6abebf

Browse files
committed
1 parent 7c721b6 commit e6abebf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ res = cli.Post("/person", "name=john1&note=coder", "application/x-www-form-urlen
114114
### POST with parameters
115115

116116
```c++
117-
httplib::Map params;
117+
httplib::Params params;
118118
params["name"] = "john";
119119
params["note"] = "coder";
120120
auto res = cli.Post("/post", params);
@@ -123,7 +123,7 @@ auto res = cli.Post("/post", params);
123123
### PUT
124124

125125
```c++
126-
res = cli.Post("/resource/foo", "text", "text/plain");
126+
res = cli.Put("/resource/foo", "text", "text/plain");
127127
```
128128

129129
### DELETE

0 commit comments

Comments
 (0)