From 9f4095f00dec0af3240ac045869541773e497f86 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Thu, 7 Dec 2017 17:27:42 -0500 Subject: [PATCH] Test server tweak --- tests/docroot/IsUp.php | 2 +- tests/server.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/docroot/IsUp.php b/tests/docroot/IsUp.php index e2e69a7b..2c1a7d68 100644 --- a/tests/docroot/IsUp.php +++ b/tests/docroot/IsUp.php @@ -1,4 +1,4 @@ 200, - 'content' => "I'm up!", + 'content' => getmypid(), ]; diff --git a/tests/server.php b/tests/server.php index 48536136..713e0ee4 100644 --- a/tests/server.php +++ b/tests/server.php @@ -58,7 +58,7 @@ if (!file_exists($test)) { // set the response code http_response_code((int) $response['code']); // if the response has a body, set the content type and (possibly) the ETag. -if (strlen($response['content'])) { +if (strlen((string) $response['content'])) { header("Content-Type: ".$response['mime']); if ($response['cache']) { header('ETag: "'.md5($response['content']).'"');