diff --git a/ChangeLog b/ChangeLog index 7e9a6f12..b4517d2f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jul 23 11:32:00 MSK 2017 + Updated chunked_example.c to provide real illustration of usage of + chunked encoding. -EG + Thu Jul 13 21:41:00 MSK 2017 Restored SIGPIPE suppression in TLS mode. Added new value MHD_FEATURE_AUTOSUPPRESS_SIGPIPE so application could diff --git a/src/examples/chunked_example.c b/src/examples/chunked_example.c index 67b8c4ca..cec20910 100644 --- a/src/examples/chunked_example.c +++ b/src/examples/chunked_example.c @@ -30,9 +30,27 @@ static ssize_t callback (void *cls, uint64_t pos, char *buf, - size_t max) + size_t buf_size) { - return MHD_CONTENT_READER_END_OF_STREAM; + static const char response_data[] = "