]> granicus.if.org Git - curl/commit
http: refuse to pass on response body with NO_NODY was set
authorDaniel Stenberg <daniel@haxx.se>
Fri, 9 Sep 2016 13:57:44 +0000 (15:57 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 11 Sep 2016 10:02:07 +0000 (12:02 +0200)
commita8e751a51a53c59e832c8351a1356763fa5766c4
tree22ab86256ed8eadd0699880d063fda2ac3c8ddfa
parentd58682f28bfbbfafcd2dd939bd4f944db2bef0c0
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
lib/transfer.c
tests/data/test1144