From 6ed5d50f5bd4ccc4d78dfdc47f3b95d4bdc20af3 Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Mon, 23 Apr 2018 15:39:29 +0200 Subject: make testserver independent of our normal php environment to avoid redirects --- tests/it_url.testserver.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/it_url.testserver.php b/tests/it_url.testserver.php index d394b58..9f04b48 100644 --- a/tests/it_url.testserver.php +++ b/tests/it_url.testserver.php @@ -1,7 +1,7 @@ 'temporary')), 'temporary'); + header("Location: $base/redirect_target?type=temporary", true, 303); break; case "/perm_redirect": - it_url::redirect(U("redirect_target", array('type' => 'permanent')), 'permanent'); + header("Location: $base/redirect_target?type=permanent", true, 301); break; case "/created_redirect": - header('Location: ' . it_url::absolute(U('redirect_target', array('type' => 'created'))), true, 201); + header("Location: $base/redirect_target?type=created", true, 201); echo "Testserver output *before* created redirect"; - exit; + break; case "/redirect_loop": if ($_REQUEST['num'] > 0) - it_url::redirect(U("redirect_loop", array('num' => $_REQUEST['num'] - 1))); + header("Location: $base/redirect_loop?num=" . ($_REQUEST['num'] - 1), true, 303); break; case "/nohost_redirect": -- cgit v1.2.3