haiku/src/tests/kits/net
Adrien Destugues 3ca5eec002 libnetservices: fix handling of HEAD requests and 204 responses
We were incorrectly reporting a B_IO_ERROR for these requests because we
could not read the content after the headers. There is no content in
these cases.

Add an unit test for both HEAD and 204 status, checking that there is no
content and the headers are correct.

Fixes #16885.

Change-Id: I98fefc5c604253bb2545b50395b7af9f8834def0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4142
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Niels Sascha Reedijk <niels.reedijk@gmail.com>
2021-07-04 08:07:59 +00:00
..
cookie
libnetapi tests/net: Fix NetworkAddressTest::TestUnset() 2020-04-04 22:44:37 +00:00
service libnetservices: fix handling of HEAD requests and 204 responses 2021-07-04 08:07:59 +00:00
urlRequest
Jamfile
NetAddressTest.cpp
NetEndpointTest.cpp test/kits/net: Fix build of NetEndpointTest 2015-07-26 09:47:50 -05:00
link_echo.cpp
wlan_test.cpp