From 2662596f105fc98ae1d2aa3b6137261bb351a8df Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 22 Dec 2024 12:27:49 -0800 Subject: HTTP: nng_http_handler_set_method no longer fails --- include/nng/supplemental/http/http.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/nng/supplemental/http/http.h b/include/nng/supplemental/http/http.h index 729e25ad..4bcc6ec6 100644 --- a/include/nng/supplemental/http/http.h +++ b/include/nng/supplemental/http/http.h @@ -355,7 +355,7 @@ NNG_DECL int nng_http_handler_alloc_directory( // called for. By default this is GET. If NULL is supplied for the // method, then the handler is executed regardless of method, and must // inspect the method itself. -NNG_DECL int nng_http_handler_set_method(nng_http_handler *, const char *); +NNG_DECL void nng_http_handler_set_method(nng_http_handler *, const char *); // nng_http_handler_set_host sets the Host: that the handler will be // called for (to allow for virtual hosts). If the value is NULL (the -- cgit v1.2.3-70-g09d2