Skip to content

Commit 23ce9f4

Browse files
committed
Quadruple request URI max length to 32768
1 parent dcca0d3 commit 23ce9f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/server/utils.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
#define CPPHTTPLIB_FORM_URL_ENCODED_PAYLOAD_MAX_LENGTH 1048576
1414
// increase backlog size to avoid connection resets for >> 1 slots
1515
#define CPPHTTPLIB_LISTEN_BACKLOG 512
16+
// increase max URI length to handle longer prompts in query string
17+
#define CPPHTTPLIB_REQUEST_URI_MAX_LENGTH 32768
1618
// disable Nagle's algorithm
1719
#define CPPHTTPLIB_TCP_NODELAY true
1820
#include <cpp-httplib/httplib.h>

0 commit comments

Comments
 (0)