From 8c14ed19b5c72f060f31767e5bc4106054e41192 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 22 Dec 2024 12:34:46 -0800 Subject: nng_http_server_collect_body now void return (API break) --- demo/rest/server.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'demo/rest') 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); } -- cgit v1.2.3-70-g09d2