aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-11-05 14:43:35 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-11-05 14:43:35 +0000
commit6b49fd74838d674011e18fcddcf497ba073052a2 (patch)
tree3d664e9471338d795da9f281b8c6d164fbc40884 /lib/http.c
parentf10985fc50aa469785f6618e05caa89a8c53542f (diff)
Tim Sneddon's VMS fix for huge HTTP POSTs
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/http.c b/lib/http.c
index 1de316b2f..9b51cc7d6 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -1925,14 +1925,15 @@ CURLcode Curl_http(struct connectdata *conn)
if(data->set.postfields) {
if((data->state.authhost.done || data->state.authproxy.done )
- && (postsize < (100*1024))) {
+ && (postsize < MAX_INITIAL_POST_SIZE)) {
/* If we're not done with the authentication phase, we don't expect
to actually send off any data yet. Hence, we delay the sending of
the body until we receive that friendly 100-continue response */
- /* The post data is less than 100K, then append it to the header.
- This limit is no magic limit but only set to prevent really huge
- POSTs to get the data duplicated with malloc() and family. */
+ /* The post data is less than MAX_INITIAL_PORT_SIZE, then append it
+ to the header. This limit is no magic limit but only set to
+ prevent really huge POSTs to get the data duplicated with
+ malloc() and family. */
result = add_buffer(req_buffer, "\r\n", 2); /* end of headers! */
if(result)