diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-12-22 11:52:04 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-12-22 11:52:04 -0800 |
| commit | 497b8e22047fb0efa3397289d23656d6483fdd6d (patch) | |
| tree | 8f2caf7dddc49e144b7e715ed64999792e796f66 /src/supplemental/http/http_public.c | |
| parent | 8d1b52931b1d7ad8fabffe0098b9bc31c0b61a9b (diff) | |
| download | nng-497b8e22047fb0efa3397289d23656d6483fdd6d.tar.gz nng-497b8e22047fb0efa3397289d23656d6483fdd6d.tar.bz2 nng-497b8e22047fb0efa3397289d23656d6483fdd6d.zip | |
http: setting response status never fails (breaking API change)
Diffstat (limited to 'src/supplemental/http/http_public.c')
| -rw-r--r-- | src/supplemental/http/http_public.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/supplemental/http/http_public.c b/src/supplemental/http/http_public.c index c9983df5..e3093d45 100644 --- a/src/supplemental/http/http_public.c +++ b/src/supplemental/http/http_public.c @@ -348,15 +348,14 @@ nng_http_res_get_reason(const nng_http_res *res) #endif } -int +void nng_http_res_set_status(nng_http_res *res, uint16_t status) { #ifdef NNG_SUPP_HTTP - return (nni_http_res_set_status(res, status)); + nni_http_res_set_status(res, status); #else NNI_ARG_UNUSED(res); NNI_ARG_UNUSED(status); - return (NNG_ENOTSUP); #endif } |
