diff options
author | Daniel Stenberg <daniel@haxx.se> | 2016-09-09 15:57:44 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-09-11 12:02:07 +0200 |
commit | a8e751a51a53c59e832c8351a1356763fa5766c4 (patch) | |
tree | 22ab86256ed8eadd0699880d063fda2ac3c8ddfa /tests/data | |
parent | d58682f28bfbbfafcd2dd939bd4f944db2bef0c0 (diff) |
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
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/test1144 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/data/test1144 b/tests/data/test1144 index 3b4a1b479..3fb90936a 100644 --- a/tests/data/test1144 +++ b/tests/data/test1144 @@ -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> |