From d4515d6d78e3902c557b8957e74e250424d7932b Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Wed, 8 May 2024 13:37:08 +0200 Subject: Switch default for it_url::get*() to not return body on status >= 400 --- test/it_url.t | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/it_url.t b/test/it_url.t index 5f2d1d0..2e7d4f2 100755 --- a/test/it_url.t +++ b/test/it_url.t @@ -278,6 +278,14 @@ $output = handle_server( ) ); +$output = handle_server( + is( + it_url::get(['url' => "http://$host/not_found_with_body", 'it_error' => false]), + false, + 'it_url::get() on 404 with body and default for body_on_fail' + ) +); + $output = handle_server( is( it::filter_keys(it_url::get(['url' => "http://$host/not_found_with_body", 'body_on_fail' => false, 'it_error' => false, 'assoc' => true]), 'status,data'), -- cgit v1.2.3