summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKashire <ashtonthecoder@gmail.com>2015-09-22 19:25:17 -0500
committerKashire <ashtonthecoder@gmail.com>2015-09-22 19:25:17 -0500
commit9679f970cbfcd839f61466533788eb6afe033ca1 (patch)
treee925cc5c89eec4855cc3d07243e5b332d32aff73
parente53ac3503e7348e178adcf8addd81994846dbbff (diff)
Update b.php
added path barrucadu's suggestion, not sure why I didn't see it for like 3 days.
-rwxr-xr-xb.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/b.php b/b.php
index f170de0c..9efa8afa 100755
--- a/b.php
+++ b/b.php
@@ -12,7 +12,7 @@ $img_extension = pathinfo($name, PATHINFO_EXTENSION);
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: " . $img_extension);
+header("Content-type: image/" . $img_extension);
header("Content-Disposition: inline; filename=" . $name);
// readfile displays the image, passthru seems to spits stream.