aboutsummaryrefslogtreecommitdiff
path: root/src/supplemental/http/http_server.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2025-01-12 08:07:20 -0800
committerGarrett D'Amore <garrett@damore.org>2025-01-12 08:07:20 -0800
commitd87b873ea5bbdae1352b2a61f5110f20b65928cc (patch)
treebea488ee888710a7c99705d6de18ed49e9efebb7 /src/supplemental/http/http_server.c
parentb16e6ebf05429cb4ac29b3a5a5c9758fa362c78a (diff)
downloadnng-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_server.c')
-rw-r--r--src/supplemental/http/http_server.c1
1 files changed, 1 insertions, 0 deletions
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);
}