summaryrefslogtreecommitdiff
path: root/source4/lib/http
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-07-20 18:13:28 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-08-07 15:20:01 +0200
commit7b86da08ea760ac5198a9ca13a349c9536aba1a7 (patch)
treec7bd55a244608b814846846790396ef1de7de4de /source4/lib/http
parent2b67d936c182f32ea46e490b56b3d471450ad1e1 (diff)
downloadsamba-7b86da08ea760ac5198a9ca13a349c9536aba1a7.tar.gz
s4:lib/http: lower HTTP_MAX_HEADER_SIZE from UINT_MAX to 0x1FFFF
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>
Diffstat (limited to 'source4/lib/http')
-rw-r--r--source4/lib/http/http.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/http/http.h b/source4/lib/http/http.h
index a601a03728b..35fe8a7655b 100644
--- a/source4/lib/http/http.h
+++ b/source4/lib/http/http.h
@@ -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;