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.
This commit is contained in:
Daniel Stenberg
2008-01-14 22:02:14 +00:00
parent 1d620a3df4
commit 53108806af
3 changed files with 12 additions and 2 deletions

View File

@@ -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 */