mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2025-01-18 13:54:01 +08:00
set img header in get.php
This commit is contained in:
parent
30ac85295c
commit
dc51f46c49
5
get.php
5
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user