From 16724b5b6836a2d4b8936a5824d2ff27c52b4517 Mon Sep 17 00:00:00 2001 From: chansikpark Date: Thu, 30 Oct 2025 14:22:23 -0400 Subject: [PATCH] server : bump request URI max length to 32768 (#16862) --- tools/server/utils.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/server/utils.hpp b/tools/server/utils.hpp index fb95361b28..b6198edfc4 100644 --- a/tools/server/utils.hpp +++ b/tools/server/utils.hpp @@ -13,6 +13,8 @@ #define CPPHTTPLIB_FORM_URL_ENCODED_PAYLOAD_MAX_LENGTH 1048576 // increase backlog size to avoid connection resets for >> 1 slots #define CPPHTTPLIB_LISTEN_BACKLOG 512 +// increase max URI length to handle longer prompts in query string +#define CPPHTTPLIB_REQUEST_URI_MAX_LENGTH 32768 // disable Nagle's algorithm #define CPPHTTPLIB_TCP_NODELAY true #include