diff options
Diffstat (limited to 'b.php')
| -rwxr-xr-x | b.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. |
