Ver código fonte

Increase default size limit for parameters in body data to 2 MB

bel2125 7 anos atrás
pai
commit
19f31ba8dd
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      src/CivetServer.cpp

+ 2 - 2
src/CivetServer.cpp

@@ -16,8 +16,8 @@
 #endif
 
 #ifndef MAX_PARAM_BODY_LENGTH
-// Set a default limit for parameters in a form body: 10 kB
-#define MAX_PARAM_BODY_LENGTH (1024 * 10)
+// Set a default limit for parameters in a form body: 2 MB
+#define MAX_PARAM_BODY_LENGTH (1024 * 1024 * 2)
 #endif
 
 bool