aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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 */