Fix Content-Type header typographical error

This commit is contained in:
Benjamin Southall 2016-09-23 22:26:12 +09:00
parent b58fab9814
commit 0feab91f31

2
b.php
View File

@ -23,7 +23,7 @@ function serveRandomBanner($dir, $files) {
header('Cache-Control: no-cache, no-store, must-revalidate'); // HTTP 1.1
header('Pragma: no-cache'); // HTTP 1.0
header('Expires: 0'); // Proxies
header("Content-type: image/" . ext);
header("Content-type: image/" . $ext);
header("Content-Disposition: inline; filename=" . $name);
// readfile displays the image, passthru seems to spits stream.