From d88484cafbf973d55dc95b7edcae5064efa8bad0 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 12 Jan 2025 13:50:32 -0800 Subject: http: fix mishandling of very long headers or URIs, and mishandling of unicode Also, nng_err is now a distinct type which might be nicer in debuggers. --- src/supplemental/http/http_server.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (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 9a9a619f..0092299d 100644 --- a/src/supplemental/http/http_server.c +++ b/src/supplemental/http/http_server.c @@ -433,15 +433,7 @@ http_sconn_rxdone(void *arg) const char *cls; if ((rv = nni_aio_result(aio)) != 0) { - if (rv == NNG_EMSGSIZE) { - sc->close = true; - http_sconn_error(sc, - nni_http_parsed(sc->conn) - ? NNG_HTTP_STATUS_HEADERS_TOO_LARGE - : NNG_HTTP_STATUS_URI_TOO_LONG); - } else { - http_sconn_close(sc); - } + http_sconn_close(sc); return; } -- cgit v1.2.3-70-g09d2