diff options
author | mzcu <milos.cubrilo@gmail.com> | 2023-12-17 15:54:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-17 16:54:37 +0200 |
commit | 62bd52b7bf90819e75f427a95a484cd5eee0b3c7 (patch) | |
tree | 63ad766c7187184957a61db4b678b1d39e5fd323 | |
parent | 5daa5f54fdcd2b5228add1a4c43a1897b2168f35 (diff) |
server : allow requests larger than 8K (#4500)
-rw-r--r-- | examples/server/server.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 5f93dcb6..a9f8b374 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -10,7 +10,8 @@ // crash the server in debug mode, otherwise send an http 500 error #define CPPHTTPLIB_NO_EXCEPTIONS 1 #endif - +// increase max payload length to allow use of larger context size +#define CPPHTTPLIB_FORM_URL_ENCODED_PAYLOAD_MAX_LENGTH 1048576 #include "httplib.h" #include "json.hpp" |