Update README.md

added return true to the content provider get example, doesn't compile without it
This commit is contained in:
Daniel Zehe 2019-11-01 14:35:17 +08:00 committed by GitHub
parent 55d04ee354
commit 9fb11986a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -196,6 +196,7 @@ int main(void)
auto res = cli.Get("/large-data",
[&](const char *data, uint64_t data_length) {
body.append(data, data_length);
return true;
});
assert(res->body.empty());