瀏覽代碼

Update b.php

added path barrucadu's suggestion, not sure why I didn't see it for like 3 days.
pull/34/head
Kashire 8 年之前
父節點
當前提交
9679f970cb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      b.php

+ 1
- 1
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.


Loading…
取消
儲存