aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-05-11 08:55:58 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-05-11 08:55:58 +0000
commit56dab605f1f1010d7a97b29532d294ad5a6a83a9 (patch)
tree594a27ebfd3ea189bef3622f4e8d41b060bc6fd7 /lib
parent3aa3d7e6293ae18ed2dd25cbfeddaecfbe6e6c78 (diff)
- I fixed the problem with doing NTLM, POST and then following a 302 redirect,
as reported by Ebenezer Ikonne (on curl-users) and Laurent Rabret (on curl-library). The transfer was mistakenly marked to get more data to send but since it didn't actually have that, it just hung there...
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c
index a31e0f879..9c020396c 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -369,6 +369,8 @@ CURLcode Curl_http_perhapsrewind(struct connectdata *conn)
case HTTPREQ_POST:
if(data->set.postfieldsize != -1)
expectsend = data->set.postfieldsize;
+ else if(data->set.postfields)
+ expectsend = (curl_off_t)strlen(data->set.postfields);
break;
case HTTPREQ_PUT:
if(data->set.infilesize != -1)