aboutsummaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-22 12:34:46 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-22 12:34:46 -0800
commit8c14ed19b5c72f060f31767e5bc4106054e41192 (patch)
tree32cf29e73a78077dbaeb7433dfa0d7265de405ba /demo
parenta946d79e8d0eb3a47f75d6e1e98a28462c584d67 (diff)
downloadnng-8c14ed19b5c72f060f31767e5bc4106054e41192.tar.gz
nng-8c14ed19b5c72f060f31767e5bc4106054e41192.tar.bz2
nng-8c14ed19b5c72f060f31767e5bc4106054e41192.zip
nng_http_server_collect_body now void return (API break)
Diffstat (limited to 'demo')
-rw-r--r--demo/rest/server.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/demo/rest/server.c b/demo/rest/server.c
index ee4047b5..1e1ccc96 100644
--- a/demo/rest/server.c
+++ b/demo/rest/server.c
@@ -289,10 +289,8 @@ rest_start(uint16_t port)
// the data yourself with another HTTP read transaction by disabling
// this, but that's a lot of work, especially if you want to handle
// chunked transfers.
- if ((rv = nng_http_handler_collect_body(handler, true, 1024 * 128)) !=
- 0) {
- fatal("nng_http_handler_collect_body", rv);
- }
+ nng_http_handler_collect_body(handler, true, 1024 * 128);
+
if ((rv = nng_http_server_add_handler(server, handler)) != 0) {
fatal("nng_http_handler_add_handler", rv);
}