From 0feab91f31e464d11cacef6b138cc85a4d1fd924 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Fri, 23 Sep 2016 22:26:12 +0900 Subject: [PATCH] Fix Content-Type header typographical error --- b.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/b.php b/b.php index 11d6ad34..a0638ec3 100755 --- a/b.php +++ b/b.php @@ -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.