diff options
| author | Garrett D'Amore <garrett@damore.org> | 2025-01-12 08:07:20 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2025-01-12 08:07:20 -0800 |
| commit | d87b873ea5bbdae1352b2a61f5110f20b65928cc (patch) | |
| tree | bea488ee888710a7c99705d6de18ed49e9efebb7 /src/supplemental/http/http_public.c | |
| parent | b16e6ebf05429cb4ac29b3a5a5c9758fa362c78a (diff) | |
| download | nng-d87b873ea5bbdae1352b2a61f5110f20b65928cc.tar.gz nng-d87b873ea5bbdae1352b2a61f5110f20b65928cc.tar.bz2 nng-d87b873ea5bbdae1352b2a61f5110f20b65928cc.zip | |
http: status and reason fixes (make it match docs)
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 55c54394..8210224b 100644 --- a/src/supplemental/http/http_public.c +++ b/src/supplemental/http/http_public.c @@ -138,16 +138,15 @@ nng_http_get_version(nng_http *conn) #endif } -int +void nng_http_set_status(nng_http *conn, uint16_t status, const char *reason) { #ifdef NNG_SUPP_HTTP - return (nni_http_set_status(conn, status, reason)); + nni_http_set_status(conn, status, reason); #else NNI_ARG_UNUSED(res); NNI_ARG_UNUSED(status); NNI_ARG_UNUSED(reason); - return (NNG_ENOTSUP); #endif } |
