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 /include | |
| 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 'include')
| -rw-r--r-- | include/nng/http.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nng/http.h b/include/nng/http.h index 69e57fa5..d8654815 100644 --- a/include/nng/http.h +++ b/include/nng/http.h @@ -162,7 +162,7 @@ NNG_DECL const char *nng_http_get_reason(nng_http *); // nng_http_set_status sets the status for the transaction (server API), // and also sets the reason (message) for it. (If NULL is used for the reason, // then a builtin value is used based on the code.) -NNG_DECL int nng_http_set_status(nng_http *, uint16_t, const char *); +NNG_DECL void nng_http_set_status(nng_http *, uint16_t, const char *); // nng_http_set_version is used to change the version of a request. // Normally the version is "HTTP/1.1". Note that the framework does |
