aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-03-31 10:02:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-03-31 10:02:23 +0000
commita2314225e02ea2f3bd49dc8557f2452846e49b19 (patch)
tree585917416e7f6d7d7cc4efe849373a716a189a13 /lib/http.c
parent1e482fe6a8dbc36a4e9ad19eb8fec98f240b5ed5 (diff)
- Added CURLFORM_STREAM as a supported option to curl_formadd() to allow an
application to provide data for a multipart with the read callback. Note that the size needs to be provided with CURLFORM_CONTENTSLENGTH when the stream option is used. This feature is verified by the new test case 554. This feature was sponsored by Xponaut.
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c
index a76c16053..356741fe8 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -2507,6 +2507,8 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
}
/* set the read function to read from the generated form data */
+ http->form.fread_func = conn->fread_func; /* get the previously set callback
+ function pointer */
conn->fread_func = (curl_read_callback)Curl_FormReader;
conn->fread_in = &http->form;