aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
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;