aboutsummaryrefslogtreecommitdiff
path: root/lib/http.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-01-14 22:02:14 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-01-14 22:02:14 +0000
commit53108806af58264196b188f2f9ac8d128b8dc239 (patch)
tree7fb8b07bab61b0ad42f83b1dcff6b32727953c89 /lib/http.c
parent1d620a3df4d1cb6d3f462b6db7b207b1cf2a0dbb (diff)
Joe Malicki filed bug report #1871269
(http://curl.haxx.se/bug/view.cgi?id=1871269) and we could fix his hang- problem that occurred when doing a large HTTP POST request with the response-body read from a callback.
Diffstat (limited to 'lib/http.c')
-rw-r--r--lib/http.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/http.c b/lib/http.c
index fd58c06cc..1dcdc0f91 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -2705,8 +2705,10 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
/* set the pointer to mark that we will send the post body using the
read callback, but only if we're not in authenticate
negotiation */
- if(!conn->bits.authneg)
+ if(!conn->bits.authneg) {
http->postdata = (char *)&http->postdata;
+ http->postsize = postsize;
+ }
}
}
/* issue the request */