浏览代码

Revert "Set content-type before sending image data for a valid response"

This reverts commit 82d64bff9692bc0ee13a43d1ff6253440fd5ac55.
JoKneeMo 1 年之前
父节点
当前提交
11f698b376
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      results/index.php

+ 1 - 1
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);