aboutsummaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-07-06 11:20:57 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-07-06 11:20:57 +0200
commitb22f93dbb854efa8ab3af9c07d01bcd3664b255c (patch)
tree6f66e3684670f88fbfd7bd4b17f4fb356757e74c /lib/http.h
parent9ee6cb1b77c7a9a17c5ce380cec72066e13b1ebf (diff)
http: s/TINY_INITIAL_POST_SIZE/EXPECT_100_THRESHOLD
Make the name reflect its use better, and add a short comment describing what it's for.
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/http.h b/lib/http.h
index 7ce4bd9a0..a845f564d 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -7,7 +7,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2017, 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
@@ -115,8 +115,13 @@ CURLcode Curl_http_perhapsrewind(struct connectdata *conn);
#define MAX_INITIAL_POST_SIZE (64*1024)
#endif
-#ifndef TINY_INITIAL_POST_SIZE
-#define TINY_INITIAL_POST_SIZE 1024
+/* EXPECT_100_THRESHOLD is the request body size limit for when libcurl will
+ * automatically add an "Expect: 100-continue" header in HTTP requests. When
+ * the size is unknown, it will always add it.
+ *
+ */
+#ifndef EXPECT_100_THRESHOLD
+#define EXPECT_100_THRESHOLD 1024
#endif
#endif /* CURL_DISABLE_HTTP */