summaryrefslogtreecommitdiff
path: root/lib/http.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-08-18 22:54:57 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-08-18 22:54:57 +0000
commit490cccba3cfd5ba54ecb64a10fb63c2f0e94a67d (patch)
treeeb23253d22757afac1453bb875043db4ffa65f6e /lib/http.h
parent839441e236764996425fe768e9497b1f914cea3e (diff)
downloadcurl-490cccba3cfd5ba54ecb64a10fb63c2f0e94a67d.tar.gz
Andrew Biggs pointed out a "Expect: 100-continue" flaw where libcurl didn't
send the whole request at once, even though the Expect: header was disabled by the application. An effect of this change is also that small (< 1024 bytes) POSTs are now always sent without Expect: header since we deem it more costly to bother about that than the risk that we send the data in vain.
Diffstat (limited to 'lib/http.h')
-rw-r--r--lib/http.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/http.h b/lib/http.h
index e84e28b07..1c8ee7e39 100644
--- a/lib/http.h
+++ b/lib/http.h
@@ -74,7 +74,11 @@ int Curl_http_should_fail(struct connectdata *conn);
It must not be greater than 64K to work on VMS.
*/
#ifndef MAX_INITIAL_POST_SIZE
-#define MAX_INITIAL_POST_SIZE 1024
+#define MAX_INITIAL_POST_SIZE (64*1024)
+#endif
+
+#ifndef TINY_INITIAL_POST_SIZE
+#define TINY_INITIAL_POST_SIZE 1024
#endif
#endif