diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/http.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/http.c b/lib/http.c index 789ee8fa9..f803e58f8 100644 --- a/lib/http.c +++ b/lib/http.c @@ -2395,9 +2395,11 @@ CURLcode Curl_http(struct connectdata *conn, bool *done) return result; } - result = expect100(data, conn, req_buffer); - if(result) - return result; + if(postsize != 0) { + result = expect100(data, conn, req_buffer); + if(result) + return result; + } result = Curl_add_buffer(req_buffer, "\r\n", 2); /* end of headers */ if(result) |