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 /include | |
| 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 'include')
| -rw-r--r-- | include/nng/supplemental/http/http.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/nng/supplemental/http/http.h b/include/nng/supplemental/http/http.h index 8cceae9e..fa485243 100644 --- a/include/nng/supplemental/http/http.h +++ b/include/nng/supplemental/http/http.h @@ -183,7 +183,7 @@ NNG_DECL void nng_http_res_free(nng_http_res *); NNG_DECL uint16_t nng_http_res_get_status(const nng_http_res *); // nng_http_res_set_status sets the HTTP status code. -NNG_DECL int nng_http_res_set_status(nng_http_res *, uint16_t); +NNG_DECL void nng_http_res_set_status(nng_http_res *, uint16_t); // nng_http_res_get_reason returns the human readable status message // that the server responds (or responded) with. |
