aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/http/http_public.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2024-12-22 12:27:49 -0800
committerGarrett D'Amore <garrett@damore.org>2024-12-22 12:27:49 -0800
commit2662596f105fc98ae1d2aa3b6137261bb351a8df (patch)
tree0c23c11eab6229cd7481a6294e1b447a6f309de7 /src/supplemental/http/http_public.c
parent10f6fc5141a15e368dac813a38942cb66d5ddef4 (diff)
downloadnng-2662596f105fc98ae1d2aa3b6137261bb351a8df.tar.gz
nng-2662596f105fc98ae1d2aa3b6137261bb351a8df.tar.bz2
nng-2662596f105fc98ae1d2aa3b6137261bb351a8df.zip
HTTP: nng_http_handler_set_method no longer fails
Diffstat (limited to 'src/supplemental/http/http_public.c')
-rw-r--r--src/supplemental/http/http_public.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/supplemental/http/http_public.c b/src/supplemental/http/http_public.c
index a60743fd..58550a3f 100644
--- a/src/supplemental/http/http_public.c
+++ b/src/supplemental/http/http_public.c
@@ -583,15 +583,14 @@ nng_http_handler_alloc_static(nng_http_handler **hp, const char *uri,
#endif
}
-int
+void
nng_http_handler_set_method(nng_http_handler *h, const char *meth)
{
#ifdef NNG_SUPP_HTTP
- return (nni_http_handler_set_method(h, meth));
+ nni_http_handler_set_method(h, meth);
#else
NNI_ARG_UNUSED(h);
NNI_ARG_UNUSED(meth);
- return (NNG_ENOTSUP);
#endif
}