]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : bump request URI max length to 32768 (#16862)
authorchansikpark <redacted>
Thu, 30 Oct 2025 18:22:23 +0000 (14:22 -0400)
committerGitHub <redacted>
Thu, 30 Oct 2025 18:22:23 +0000 (20:22 +0200)
tools/server/utils.hpp

index fb95361b282771f588ea4d853b4f625d9db0efe3..b6198edfc487cf64ca2b006bc3c23b10e1c41dcf 100644 (file)
@@ -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 <cpp-httplib/httplib.h>