mirror of
https://github.com/curl/curl.git
synced 2026-08-05 11:56:13 +03:00
http: refuse to pass on response body with NO_NODY was set
... like when a HTTP/0.9 response comes back without any headers at all and just a body this now prevents that body from being sent to the callback etc. Adapted test 1144 to verify. Fixes #973 Assisted-by: Ray Satiro
This commit is contained in:
parent
d58682f28b
commit
a8e751a51a
2 changed files with 14 additions and 0 deletions
|
|
@ -30,6 +30,10 @@ data to
|
|||
|
||||
verify
|
||||
</data>
|
||||
# make sure no data is written
|
||||
<datacheck nonewline="yes">
|
||||
|
||||
</datacheck>
|
||||
</reply>
|
||||
|
||||
#
|
||||
|
|
@ -58,5 +62,8 @@ Host: %HOSTIP:%HTTPPORT
|
|||
Accept: */*
|
||||
|
||||
</protocol>
|
||||
<errorcode>
|
||||
8
|
||||
</errorcode>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue