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) --- src/supplemental/http/http_server.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/supplemental/http/http_server.c') diff --git a/src/supplemental/http/http_server.c b/src/supplemental/http/http_server.c index 7a7caeca..ffb01449 100644 --- a/src/supplemental/http/http_server.c +++ b/src/supplemental/http/http_server.c @@ -704,6 +704,7 @@ finish: // make sure the response is freshly initialized nni_http_res_reset(nni_http_conn_res(sc->conn)); nni_http_set_version(sc->conn, NNG_HTTP_VERSION_1_1); + nni_http_set_status(sc->conn, 0, NULL); h->cb(sc->conn, h->data, &sc->cbaio); } -- cgit v1.2.3-70-g09d2