set img header in get.php

This commit is contained in:
printempw 2016-03-12 18:48:10 +08:00
parent 30ac85295c
commit dc51f46c49

View File

@ -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 {