mirror of
https://github.com/curl/curl.git
synced 2026-08-05 12:46:14 +03:00
HTTP: don't send Content-Length: 0 _and_ Expect: 100-continue
Without request body there's no point in asking for 100-continue. Bug: http://curl.haxx.se/bug/view.cgi?id=1349 Reported-by: JimS
This commit is contained in:
parent
c81021f747
commit
42937f87e6
7 changed files with 66 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue