From d87b873ea5bbdae1352b2a61f5110f20b65928cc Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 12 Jan 2025 08:07:20 -0800 Subject: http: status and reason fixes (make it match docs) --- include/nng/http.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3-70-g09d2