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. --- include/nng/nng.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/nng/nng.h b/include/nng/nng.h index 6f01363f..516cdeb9 100644 --- a/include/nng/nng.h +++ b/include/nng/nng.h @@ -1020,7 +1020,7 @@ NNG_DECL void nng_device_aio(nng_aio *, nng_socket, nng_socket); // errors, from different transports. It should only be used when none // of the other options are available. -enum nng_errno_enum { +typedef enum nng_errno_enum { NNG_EINTR = 1, NNG_ENOMEM = 2, NNG_EINVAL = 3, @@ -1054,7 +1054,7 @@ enum nng_errno_enum { NNG_EINTERNAL = 1000, NNG_ESYSERR = 0x10000000, NNG_ETRANERR = 0x20000000 -}; +} nng_err; // nng_url_parse parses a URL string into a structured form. // Note that the u_port member will be filled out with a numeric -- cgit v1.2.3-70-g09d2