mirror of
https://github.com/curl/curl.git
synced 2026-06-01 22:04:15 +03:00
Andrew Biggs pointed out a "Expect: 100-continue" flaw where libcurl didn't
send the whole request at once, even though the Expect: header was disabled by the application. An effect of this change is also that small (< 1024 bytes) POSTs are now always sent without Expect: header since we deem it more costly to bother about that than the risk that we send the data in vain.
This commit is contained in:
parent
839441e236
commit
490cccba3c
8 changed files with 32 additions and 24 deletions
|
|
@ -39,7 +39,6 @@ Host: 127.0.0.1:%HTTPPORT
|
|||
Accept: */*
|
||||
Content-Length: 45
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Expect: 100-continue
|
||||
|
||||
this is what we post to the silly web server
|
||||
</protocol>
|
||||
|
|
|
|||
|
|
@ -39,7 +39,6 @@ Host: 127.0.0.1:%HTTPPORT
|
|||
Accept: */*
|
||||
Transfer-Encoding: chunked
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Expect: 100-continue
|
||||
|
||||
3
|
||||
one
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ Host: 127.0.0.1:%HTTPPORT
|
|||
Accept: */*
|
||||
Content-Length: 1
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Expect: 100-continue
|
||||
|
||||
</protocol>
|
||||
# 42 - aborted by callback
|
||||
|
|
|
|||
|
|
@ -40,7 +40,6 @@ Host: 127.0.0.1:%HTTPPORT
|
|||
Accept: */*
|
||||
Content-Length: 0
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Expect: 100-continue
|
||||
|
||||
</protocol>
|
||||
</verify>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue