s4:lib/http: lower HTTP_MAX_HEADER_SIZE from UINT_MAX to 0x1FFFF
authorStefan Metzmacher <metze@samba.org>
Thu, 20 Jul 2017 16:13:28 +0000 (18:13 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 7 Aug 2017 13:20:01 +0000 (15:20 +0200)
We don't need very large headers, the largest ones are
"Authorization" or "WWW-Authenticate", but 128k should be
more than enough for all headers.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source4/lib/http/http.h

index a601a03728b292c8031ba081bff109e752b3e3d2..35fe8a7655be601c8acd7ae3299cf8c3267891c5 100644 (file)
@@ -43,7 +43,7 @@
 #define HTTP_NOTIMPLEMENTED    501     /* not implemented */
 #define HTTP_SERVUNAVAIL       503     /* server is not available */
 
-#define HTTP_MAX_HEADER_SIZE   UINT_MAX
+#define HTTP_MAX_HEADER_SIZE   0x1FFFF
 
 struct cli_credentials;
 struct loadparm_ctx;