mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-19 03:08:28 +00:00
commit
4f9d04cb8e
1 changed files with 1 additions and 0 deletions
|
@ -196,6 +196,7 @@ int main(void)
|
||||||
auto res = cli.Get("/large-data",
|
auto res = cli.Get("/large-data",
|
||||||
[&](const char *data, uint64_t data_length) {
|
[&](const char *data, uint64_t data_length) {
|
||||||
body.append(data, data_length);
|
body.append(data, data_length);
|
||||||
|
return true;
|
||||||
});
|
});
|
||||||
|
|
||||||
assert(res->body.empty());
|
assert(res->body.empty());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue