From 4c0f5a738aaa5897cc36062d9555b2edbf5142f5 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Mon, 29 Apr 2024 09:36:51 +0200 Subject: Version 2 of: Switch it_url::get('assoc' => true) to always return non-empty array including at least the HTTP status code --- test/it_url.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/it_url.t b/test/it_url.t index 568feda..47064b5 100755 --- a/test/it_url.t +++ b/test/it_url.t @@ -272,7 +272,7 @@ $output = handle_server( $output = handle_server( is( it::filter_keys(it_url::get(['url' => "http://$host/not_found_with_body", 'empty_on_fail' => true, 'it_error' => false, 'assoc' => true]), 'status,data'), - [], + ['status' => 404, 'data' => null], 'it_url::get() on 404 with body, empty_on_fail and assoc' ) ); -- cgit v1.2.3