From 11f698b376969c59d9d1e7f29eb86f1d1759ee29 Mon Sep 17 00:00:00 2001 From: JoKneeMo <421625+JoKneeMo@users.noreply.github.com> Date: Wed, 8 Nov 2023 11:05:47 -0500 Subject: [PATCH] Revert "Set content-type before sending image data for a valid response" This reverts commit 82d64bff9692bc0ee13a43d1ff6253440fd5ac55. --- results/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/results/index.php b/results/index.php index 2505058..ad6beca 100755 --- a/results/index.php +++ b/results/index.php @@ -212,6 +212,7 @@ function drawImage($speedtest) imagefttext($im, $FONT_WATERMARK_SIZE, 0, $POSITION_X_WATERMARK, $POSITION_Y_WATERMARK, $TEXT_COLOR_WATERMARK, $FONT_WATERMARK, $WATERMARK_TEXT); // send the image to the browser + header('Content-Type: image/png'); imagepng($im); } @@ -220,5 +221,4 @@ if (!is_array($speedtest)) { exit(1); } -header('Content-Type: image/png'); drawImage($speedtest);