]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
dynbuf: bump the max HTTP request to 1MB
authorDaniel Stenberg <daniel@haxx.se>
Wed, 3 Mar 2021 17:46:29 +0000 (18:46 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 6 Mar 2021 21:48:35 +0000 (22:48 +0100)
Raised from 128KB to allow longer request headers.

Reported-by: Carl Zogheib
Fixes #6681
Closes #6685

lib/dynbuf.h

index 484e40c645b2cacb48216c59831ee7a8fa44b972..252411f8421a8c17fd064e22eaa2719ee924f084 100644 (file)
@@ -7,7 +7,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2020, 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -74,7 +74,7 @@ int Curl_dyn_vprintf(struct dynbuf *dyn, const char *format, va_list ap_save);
 #define DYN_DOH_CNAME       256
 #define DYN_PAUSE_BUFFER    (64 * 1024 * 1024)
 #define DYN_HAXPROXY        2048
-#define DYN_HTTP_REQUEST    (128*1024)
+#define DYN_HTTP_REQUEST    (1024*1024)
 #define DYN_H2_HEADERS      (128*1024)
 #define DYN_H2_TRAILERS     (128*1024)
 #define DYN_APRINTF         8000000