From dc51f46c4940bd25ac425ec34468a37c87b7f434 Mon Sep 17 00:00:00 2001 From: printempw Date: Sat, 12 Mar 2016 18:48:10 +0800 Subject: [PATCH] set img header in get.php --- get.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/get.php b/get.php index 5a26adf7..f53fd3af 100644 --- a/get.php +++ b/get.php @@ -2,8 +2,8 @@ /** * @Author: prpr * @Date: 2016-02-02 20:56:42 - * @Last Modified by: prpr - * @Last Modified time: 2016-02-14 16:18:03 + * @Last Modified by: printempw + * @Last Modified time: 2016-03-12 18:46:34 * * All textures requests of legacy link will be handle here. */ @@ -27,6 +27,7 @@ if (isset($_GET['type']) && isset($_GET['uname'])) { if ($if_modified_since >= $user->getLastModified()) { header('HTTP/1.0 304 Not Modified'); } else { + header('Content-Type: image/png'); if ($_GET['type'] == "cape") { echo $user->getBinaryTexture('cape'); } else {